From: Paolo Bonzini Date: Tue, 12 Sep 2017 14:44:57 +0000 (+0200) Subject: qemu-iotests: fix uninitialized variable X-Git-Tag: v2.11.0-rc0~61^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f4dcaba9bed36d067f2f2da1e2ceb9d1b50f2b2;p=thirdparty%2Fqemu.git qemu-iotests: fix uninitialized variable The variable is used in "common" but defined only after the file is sourced. Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index e39680ade21..2d2ef687ad0 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -77,8 +77,6 @@ fi TIMESTAMP_FILE=check.time-$IMGPROTO-$IMGFMT -tmp="${TEST_DIR}"/$$ - _wallclock() { date "+%H %M %S" | awk '{ print $1*3600 + $2*60 + $3 }' diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index ee313af92f6..365d3c43494 100644 --- a/tests/qemu-iotests/common +++ b/tests/qemu-iotests/common @@ -67,6 +67,8 @@ sortme=false expunge=true have_test_arg=false cachemode=false + +tmp="${TEST_DIR}"/$$ rm -f $tmp.list $tmp.tmp $tmp.sed export IMGFMT=raw