X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-bringup%2Ftest-chaoskey;h=3d510971ffc84307d3a6a3a32b89e37df03c3d40;hb=cdbc29d6d86c69e70b0f105d273ee8ddd7ae290e;hp=f64b1f846b1edb1a5a715799ef66ebde988a7c40;hpb=f43c3ad0c643f714c523e513bdc8585c6d5a4050;p=fw%2Faltos diff --git a/ao-bringup/test-chaoskey b/ao-bringup/test-chaoskey index f64b1f84..3d510971 100755 --- a/ao-bringup/test-chaoskey +++ b/ao-bringup/test-chaoskey @@ -12,8 +12,8 @@ case "$#" in serial="--serial $1" ;; 0) - snum=`sudo dmesg | awk '/usb.*Product:/ { ck = index($0, "ChaosKey"); } - /usb.*SerialNumber:/ { if (ck) print $5; }' | tail -1` + snum=`sudo dmesg -t | awk '/usb.*Product:/ { ck = index($0, "ChaosKey"); } + /usb.*SerialNumber:/ { if (ck) print $4; }' | tail -1` case "$snum" in "") @@ -37,7 +37,7 @@ tests="0:100 1:100 2:100 3:100 12:10 13:100 15:10000 16:250 202:1000 203:100 204 PASS=0 FAIL=0 WEAK=0 -../ao-tools/ao-chaosread/ao-chaosread $serial --infinite --bytes | for test in $tests done; do +chaosread $serial --infinite --bytes | for test in $tests done; do case $test in *:*:*) dnum=`echo $test | sed 's/:.*$//'`