test: Run qemu/nspawn tests with "set -e"
authorMartin Pitt <martin@piware.de>
Mon, 7 Aug 2017 19:09:21 +0000 (21:09 +0200)
committerMartin Pitt <martin@piware.de>
Thu, 10 Aug 2017 06:43:13 +0000 (08:43 +0200)
commit818567fce693519eda9d7550a9ae21a7fc974b3c
tree3f25bf3ad0dff743160b64719a0ae47681b1ff89
parent22077c9c91bff600da78bd17f19a02dfcf1a56bd
test: Run qemu/nspawn tests with "set -e"

This catches errors like "ninja not found", missing programs etc. early,
instead of silently ignoring them and trying to boot a broken VM.

In install_config_files(), allow some distro specific files to be absent
(such as /etc/sysconfig/init).
17 files changed:
test/TEST-01-BASIC/test.sh
test/TEST-02-CRYPTSETUP/test.sh
test/TEST-03-JOBS/test-jobs.sh
test/TEST-03-JOBS/test.sh
test/TEST-04-JOURNAL/test.sh
test/TEST-05-RLIMITS/test.sh
test/TEST-06-SELINUX/test.sh
test/TEST-07-ISSUE-1981/test.sh
test/TEST-08-ISSUE-2730/test.sh
test/TEST-09-ISSUE-2691/test.sh
test/TEST-10-ISSUE-2467/test.sh
test/TEST-11-ISSUE-3166/test.sh
test/TEST-12-ISSUE-3171/test.sh
test/TEST-13-NSPAWN-SMOKE/test.sh
test/TEST-14-MACHINE-ID/test.sh
test/TEST-15-DROPIN/test.sh
test/test-functions