diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2014-11-27 12:21:43 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2014-11-27 12:21:43 +0100 |
commit | 251a4bceffbc2d51be8edad1a2c612d2149a72fc (patch) | |
tree | a5dfd93f0d4957bac4a66eb56bccb5822074df5b /ubuntu/scripts/device_read_perf.sh | |
parent | c3c64c7a07769c15229aab41884e076e331c66bc (diff) |
ubuntu: device_read_perf: fix bashism issues
A few remaining bash issues were still present in the merged script, such as
device_read_perf.sh: 46: device_read_perf.sh: Syntax error: "(" unexpected
(expecting "done")
and the test failed in LAVA, see:
https://validation.linaro.org/dashboard/attachment/1227507/view
Change-Id: If7263935f1277fcc53c90a9cda3736405d072257
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'ubuntu/scripts/device_read_perf.sh')
-rwxr-xr-x | ubuntu/scripts/device_read_perf.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ubuntu/scripts/device_read_perf.sh b/ubuntu/scripts/device_read_perf.sh index 4ac0d5e..de2ec52 100755 --- a/ubuntu/scripts/device_read_perf.sh +++ b/ubuntu/scripts/device_read_perf.sh @@ -43,7 +43,7 @@ test_func(){ # Perform timings of cache reads hdparm -T /dev/$test_cmd # Perform timings of device reads in MB/sec - c_read=(`hdparm -t /dev/$test_cmd | grep 'reads' | awk -v col1=11 '{print $col1}'`) + c_read=`hdparm -t /dev/$test_cmd | grep 'reads' | awk -v col1=11 '{print $col1}'` if [ $c_read ] then echo "Device read timings: $c_read MB/sec" @@ -51,16 +51,16 @@ test_func(){ echo "test_case_id:device_read_perf-$test_cmd units:none measurement:0 result:fail" exit 0 fi - t_read=(`echo $t_read $c_read | awk '{print $1+$2}'`) + t_read=`echo $t_read $c_read | awk '{print $1+$2}'` done # Get average of device reads in MB/sec - t_read=(`echo $t_read | awk '{print $1/3}'`) + t_read=`echo $t_read | awk '{print $1/3}'` echo "Average device read timings: $t_read MB/sec" echo "test_case_id:device_read_perf-$test_cmd units:MBperSecond measurement:$t_read result:pass" } # Get total block devices -disk_count=(`lsblk | grep disk -c`) +disk_count=`lsblk | grep disk -c` if [ $disk_count -ge 1 ] then |