Skip to content

Conversation

@evverx
Copy link
Contributor

@evverx evverx commented Nov 25, 2015

How to reproduce:

  • remove strace
$ cd test/TEST-01-BASIC
$ sudo make clean setup run
...
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

systemd-testsuite login:
^]]]
Container nspawn-root terminated by signal KILL.
+ check_result_nspawn
+ ret=1
+ [[ -e /var/tmp/systemd-test.EUiNO1/nspawn-root/testok ]]
+ [[ -f /var/tmp/systemd-test.EUiNO1/nspawn-root/failed ]]
+ cp -a /var/tmp/systemd-test.EUiNO1/nspawn-root/var/log/journal /var/tmp/systemd-test.EUiNO1
+ [[ -f /var/tmp/systemd-test.EUiNO1/failed ]]
+ ls -l /var/tmp/systemd-test.EUiNO1/journal/5b23691d3cbc44eaad09825cb92a241f/system.journal
-rw-r-----+ 1 root root 8388608 Nov 25 18:21 /var/tmp/systemd-test.EUiNO1/journal/5b23691d3cbc44eaad09825cb92a241f/system.journal
+ test -s /var/tmp/systemd-test.EUiNO1/failed
+ return 1
+ return 1
+ ret=1
+ '[' 1 -eq 0 ']'
+ echo 'TEST RUN: Basic systemd setup [FAILED]'
TEST RUN: Basic systemd setup [FAILED]
+ exit 1
Makefile:10: recipe for target 'run' failed
make: *** [run] Error 1

Hmmmm...:)

Now:

$ sudo make clean setup run
...
D: Installing /bin/mkdir
D: Installing /bin/cp
D: Installing /bin/ping
F: Failed to install strace
Makefile:5: recipe for target 'setup' failed
make: *** [setup] Error 1

@zonque , @ronnychevalier , please, take a look.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, none of these statements is allowed to fail, right? Did you experiment with set -e for these scripts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set -e breaks these scripts:

$ sudo make clean
TEST CLEANUP: Basic systemd setup
Makefile:8: recipe for target 'clean' failed
make: *** [clean] Error 32
+ test_cleanup
+ umount /var/tmp/systemd-test.otwsn3/root

There are many such places.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to use the Unofficial Bash Strict Mode. But it requires many changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to use the Unofficial Bash Strict Mode. But it requires many changes.

Fair enough. We should keep that in mind though for future additions.

@zonque zonque added the tests label Nov 26, 2015
zonque added a commit that referenced this pull request Nov 27, 2015
@zonque zonque merged commit c9ff64f into systemd:master Nov 27, 2015
evverx added a commit to evverx/systemd that referenced this pull request Nov 27, 2015
martinpitt pushed a commit to martinpitt/systemd that referenced this pull request Dec 28, 2015
tblume pushed a commit to tblume/systemd-testsuite-suse that referenced this pull request Mar 8, 2016
tblume pushed a commit to tblume/systemd-testsuite-suse that referenced this pull request Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants