]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qemu-iotests: get rid of AWK_PROG
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Sep 2017 14:44:51 +0000 (16:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
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
tests/qemu-iotests/common.config

index 041780b09fdfa3d63827d8948efcf7b6aaa33b64..67da67bd54d6dd92ea228676880bee7907d8be61 100755 (executable)
@@ -128,7 +128,7 @@ tmp="${TEST_DIR}"/$$
 
 _wallclock()
 {
-    date "+%H %M %S" | $AWK_PROG '{ print $1*3600 + $2*60 + $3 }'
+    date "+%H %M %S" | awk '{ print $1*3600 + $2*60 + $3 }'
 }
 
 _timestamp()
@@ -147,7 +147,7 @@ _wrapup()
         if [ -f $TIMESTAMP_FILE -a -f $tmp.time ]
         then
             cat $TIMESTAMP_FILE $tmp.time \
-            | $AWK_PROG '
+            | awk '
         { t[$1] = $2 }
 END        { if (NR > 0) {
             for (i in t) print i " " t[i]
index 867918895bee348f91959d58fb1dbe3240a929db..130f647a4dad0fda326b317601852179198e96eb 100644 (file)
@@ -366,7 +366,7 @@ testlist options
     if $xpand
     then
         have_test_arg=true
-        $AWK_PROG </dev/null '
+        awk </dev/null '
 BEGIN        { for (t='$start'; t<='$end'; t++) printf "%03d\n",t }' \
         | while read id
         do
index b599c72211315f90af18c9c9106e4e6e36920b95..0f571d46eb64517b0e0a380d717b0e1e64be601e 100644 (file)
@@ -56,9 +56,6 @@ _fatal()
     exit 1
 }
 
-export AWK_PROG="`set_prog_path awk`"
-[ "$AWK_PROG" = "" ] && _fatal "awk not found"
-
 if [ -z "$QEMU_PROG" ]; then
     export QEMU_PROG="`set_prog_path qemu`"
 fi