]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qemu-iotests: fix uninitialized variable
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Sep 2017 14:44:57 +0000 (16:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
The variable is used in "common" but defined only after the file
is sourced.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/check
tests/qemu-iotests/common

index e39680ade215b2135547ec1537a60b98f1b1bebc..2d2ef687ad049310566f61baad580e3892b8781e 100755 (executable)
@@ -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 }'
index ee313af92f67da8bf5cd92c8a4ad56c07bd486cd..365d3c43494c9051ceda9fa14fa72a0f9770d4ea 100644 (file)
@@ -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