BugFix: modify storagecapacity output format for result visualization in grafana... 99/18499/1
authorJingLu5 <lvjing5@huawei.com>
Fri, 12 Aug 2016 04:55:29 +0000 (12:55 +0800)
committerJingLu5 <lvjing5@huawei.com>
Fri, 12 Aug 2016 04:55:29 +0000 (12:55 +0800)
Change-Id: I255586efb0d1e25d7505838693d90a40282249b4
Signed-off-by: JingLu5 <lvjing5@huawei.com>
tests/unit/benchmark/scenarios/storage/test_storagecapacity.py
yardstick/benchmark/scenarios/storage/storagecapacity.bash

index cad5ba1..ace0ca3 100644 (file)
@@ -18,7 +18,7 @@ import json
 
 from yardstick.benchmark.scenarios.storage import storagecapacity
 
-DISK_SIZE_SAMPLE_OUTPUT = '{"Numberf of devides": "2", "Total disk size": "1024000000 bytes"}'
+DISK_SIZE_SAMPLE_OUTPUT = '{"Numberf of devides": "2", "Total disk size in bytes": "1024000000"}'
 BLOCK_SIZE_SAMPLE_OUTPUT = '{"/dev/sda": 1024, "/dev/sdb": 4096}'
 DISK_UTIL_RAW_OUTPUT = "vda 10.00\nvda 0.00"
 DISK_UTIL_SAMPLE_OUTPUT = '{"vda": {"avg_util": 5.0, "max_util": 10.0, "min_util": 0.0}}'
index 6ed4b28..f963782 100644 (file)
@@ -27,7 +27,7 @@ output_disk_size()
     DISKSIZE=`awk 'BEGIN{cnt=0;} {cnt=cnt+$2} END{print cnt}' $OUTPUT_FILE`
     echo -e "{\
          \"Number of devices\":\"$DEVICENUM\", \
-         \"Total disk size\":\"$DISKSIZE bytes\" \
+         \"Total disk size in bytes\":\"$DISKSIZE\" \
     }"
 }