qemu-iotests: get rid of $iam
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Sep 2017 14:44:58 +0000 (16:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
The variable is almost unused, and one of the two uses is actually
uninitialized.

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.rc

index 2d2ef687ad049310566f61baad580e3892b8781e..010bf48e922d9b909b80828217cc90773f48e5f3 100755 (executable)
@@ -30,12 +30,9 @@ interrupt=true
 # by default don't output timestamps
 timestamp=${TIMESTAMP:=false}
 
-# generic initialization
-iam=check
-
 _init_error()
 {
-    echo "$iam: $1" >&2
+    echo "check: $1" >&2
     exit 1
 }
 
index f4dc0104e6a3f61bde9beeb49bb19b0bc507cac6..0e8a33c6968ff35ef1d6813fad95d0ba849748c9 100644 (file)
@@ -43,7 +43,7 @@ poke_file()
 
 if ! . ./common.config
     then
-    echo "$iam: failed to source common.config"
+    echo "$0: failed to source common.config"
     exit 1
 fi