]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: correctly fail when system is borked
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 27 May 2019 17:59:26 +0000 (19:59 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 27 May 2019 19:31:55 +0000 (22:31 +0300)
commitd0533a319b075115268eea859e11d35153d58265
treed91c3f65801b2fc05dd731ebd9bbca250f58e5b0
parent75e4c768e212cc66a78b05ce70a2871e133833cb
test: correctly fail when system is borked

In certain situations, the systemctl commands may fail (e.g. due to
missing shared libraries), but the 'script' continues and creates a
/testok file, marking the test incorrectly as passed. Let's fix this and
bail out immediately when a command exits with a non-zero exit code.
test/TEST-01-BASIC/test.sh