Add test case run command introduction 59/38659/1
authorYang Yu <Gabriel.yuyang@huawei.com>
Thu, 3 Aug 2017 05:00:08 +0000 (13:00 +0800)
committerYang Yu <Gabriel.yuyang@huawei.com>
Thu, 3 Aug 2017 05:00:08 +0000 (13:00 +0800)
JIRA: BOTTLENECK-158

Print testcase run command to ease reading log

Change-Id: I41362349d23865d0a485d80856cbbc4658ee945a
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
jjb/bottlenecks/bottlenecks-run-suite.sh

index 06fb5da..6bab0e4 100644 (file)
@@ -67,9 +67,13 @@ if [[ $SUITE_NAME == *posca* ]]; then
 
     if [[ $SUITE_NAME == posca_stress_traffic ]]; then
         TEST_CASE=posca_factor_system_bandwidth
-        docker exec bottlenecks-load-master python ${POSCA_SCRIPT}/../run_testsuite.py testcase $TEST_CASE $REPORT
+        testcase_cmd="docker exec bottlenecks-load-master python ${POSCA_SCRIPT}/../run_testsuite.py testcase $TEST_CASE $REPORT"
+        echo "BOTTLENECKS INFO: running test case ${TEST_CASE} with report indicator: ${testcase_cmd}"
+        ${testcase_cmd} >$redirect
     elif [[ $SUITE_NAME == posca_stress_ping ]]; then
         TEST_CASE=posca_factor_ping
-        docker exec bottlenecks-load-master python ${POSCA_SCRIPT}/../run_testsuite.py testcase $TEST_CASE $REPORT
+        testcase_cmd="docker exec bottlenecks-load-master python ${POSCA_SCRIPT}/../run_testsuite.py testcase $TEST_CASE $REPORT"
+        echo "BOTTLENECKS INFO: running test case ${TEST_CASE} with report indicator: ${testcase_cmd}"
+        ${testcase_cmd} >$redirect
     fi
 fi