Browse Source

[2157] use predefined variable for awk path

Yoshitaka Aharen 12 years ago
parent
commit
bce2a3f58d
1 changed files with 9 additions and 9 deletions
  1. 9 9
      tests/system/bindctl/tests.sh

+ 9 - 9
tests/system/bindctl/tests.sh

@@ -55,31 +55,31 @@ BEGIN {
 # since the content of datasource and requests are not changed in this test. 
 # since the content of datasource and requests are not changed in this test. 
 test_counters () {
 test_counters () {
     status=0
     status=0
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"request":"v4": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"request":"v4": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"request":"v6": '0 > \
         grep '"Auth":"zones":"_SERVER_":"request":"v6": '0 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"request":"udp": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"request":"udp": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"request":"tcp": '0 > \
         grep '"Auth":"zones":"_SERVER_":"request":"tcp": '0 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"opcode":"query": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"opcode":"query": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"responses": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"responses": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"rcode":"noerror": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"rcode":"noerror": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"qrysuccess": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"qrysuccess": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
-    awk "$awk_flatten_json" bindctl.out.$n | \
+    $AWK "$awk_flatten_json" bindctl.out.$n | \
         grep '"Auth":"zones":"_SERVER_":"qryauthans": '$1 > \
         grep '"Auth":"zones":"_SERVER_":"qryauthans": '$1 > \
         /dev/null || status=1
         /dev/null || status=1
     return $status
     return $status