summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-25 12:00:11 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-08 20:27:33 -0400
commit5b23cef0bb3ca62c2c878fbf2f2bfd497b16b4bc (patch)
treed896f2b09b6ad369467fe9d6f8bcd0613cd555a9 /test/test-functions
parent03a037f338fc32148b98a911934cf5bc826d8b7e (diff)
downloadsystemd-5b23cef0bb3ca62c2c878fbf2f2bfd497b16b4bc.tar.gz
systemd-5b23cef0bb3ca62c2c878fbf2f2bfd497b16b4bc.tar.bz2
systemd-5b23cef0bb3ca62c2c878fbf2f2bfd497b16b4bc.zip
tests: specify format=raw for qemu to avoid warning
WARNING: Image format was not specified for '/var/tmp/systemd-test.tGi3od/rootdisk.img' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. Also use unsafe caching mode, we don't care about data integrity here.
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions
index b07c500339..9e9f2953cb 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -79,6 +79,7 @@ $KERNEL_APPEND \
-m 512M \
-nographic \
-kernel $KERNEL_BIN \
+-drive format=raw,cache=unsafe,file=${TESTDIR}/rootdisk.img \
"
if [[ "$INITRD" && "$SKIP_INITRD" != "yes" ]]; then
@@ -93,7 +94,7 @@ $KERNEL_APPEND \
QEMU_BIN="timeout --foreground $QEMU_TIMEOUT $QEMU_BIN"
fi
( set -x
- $QEMU_BIN $QEMU_OPTIONS -append "$KERNEL_APPEND" $TESTDIR/rootdisk.img ) || return 1
+ $QEMU_BIN $QEMU_OPTIONS -append "$KERNEL_APPEND" ) || return 1
}
run_nspawn() {