From 818567fce693519eda9d7550a9ae21a7fc974b3c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 7 Aug 2017 21:09:21 +0200 Subject: 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). --- test/TEST-06-SELINUX/test.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'test/TEST-06-SELINUX') diff --git a/test/TEST-06-SELINUX/test.sh b/test/TEST-06-SELINUX/test.sh index ab4bb435dc..e0c4c10e1c 100755 --- a/test/TEST-06-SELINUX/test.sh +++ b/test/TEST-06-SELINUX/test.sh @@ -1,6 +1,7 @@ #!/bin/bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh +set -e TEST_DESCRIPTION="SELinux tests" TEST_NO_NSPAWN=1 -- cgit v1.2.3