aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-08-26 03:20:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-26 03:20:23 +0000
commit1c587f5c883e49ba6457925d06b0ce4271d345a6 (patch)
tree6bf9c3c1b874579464334cdcc7bdb19b421c8f71
parent7f46ed48c51dde7b11502ebac482536048b70177 (diff)
parent395bef41759c09e73310bf9244c929013fa3097e (diff)
Merge "bugfix: tc063 fails to get the correct result in ubuntu node"
-rw-r--r--yardstick/benchmark/scenarios/storage/storagecapacity.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/storage/storagecapacity.bash b/yardstick/benchmark/scenarios/storage/storagecapacity.bash
index f963782d8..96db6e1be 100644
--- a/yardstick/benchmark/scenarios/storage/storagecapacity.bash
+++ b/yardstick/benchmark/scenarios/storage/storagecapacity.bash
@@ -17,7 +17,7 @@ OUTPUT_FILE=/tmp/storagecapacity-out.log
# run disk_size test
run_disk_size()
{
- fdisk -l | grep '^Disk.*bytes$' | awk -F [:,\ ] '{print $2,$7}' > $OUTPUT_FILE
+ fdisk -l | grep '^Disk.*bytes' | awk -F [:,\ ] '{print $2,$7}' > $OUTPUT_FILE
}
# write the disk size to stdout in json format
@@ -35,7 +35,7 @@ output_disk_size()
run_block_size()
{
echo -n "" > $OUTPUT_FILE
- blkdevices=`fdisk -l | grep '^Disk.*bytes$' | awk -F [:,\ ] '{print $2}'`
+ blkdevices=`fdisk -l | grep '^Disk.*bytes' | awk -F [:,\ ] '{print $2}'`
blkdevices=($blkdevices)
for bd in "${blkdevices[@]}";do
blk_size=`blockdev --getbsz $bd`