diff options
-rwxr-xr-x | test/TEST-74-AUX-UTILS/test.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/TEST-74-AUX-UTILS/test.sh b/test/TEST-74-AUX-UTILS/test.sh index 6b7c251049..1e360658ed 100755 --- a/test/TEST-74-AUX-UTILS/test.sh +++ b/test/TEST-74-AUX-UTILS/test.sh @@ -10,7 +10,11 @@ TEST_DESCRIPTION="Tests for auxiliary utilities" test_append_files() { local workspace="${1:?}" - printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >"$workspace/etc/machine-id" + if ! get_bool "${TEST_PREFER_NSPAWN:-}" && ! get_bool "${TEST_NO_QEMU:-}"; then + # Check if we can correctly boot with an invalid machine ID only if we run + # the QEMU test, as nspawn refuses the invalid machine ID with -EUCLEAN + printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >"$workspace/etc/machine-id" + fi } do_test "$@" |