[Fuego] [PATCH 4/4] LTP: print the timestamp when running one testset

Liu Wenlong liuwl.fnst at cn.fujitsu.com
Sun Mar 11 15:38:41 UTC 2018

Why add the timestamp info?
- Help us to check the test duration for each testset when running
  multiple testsets at the same time.

Signed-off-by: Liu Wenlong <liuwl.fnst at cn.fujitsu.com>
 engine/tests/Functional.LTP/ltp_target_run.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/engine/tests/Functional.LTP/ltp_target_run.sh b/engine/tests/Functional.LTP/ltp_target_run.sh
index 3292a4b..17d633c 100755
--- a/engine/tests/Functional.LTP/ltp_target_run.sh
+++ b/engine/tests/Functional.LTP/ltp_target_run.sh
@@ -23,7 +23,7 @@ echo "ltp_target_run: ${TESTS} | ${PTSTESTS} | ${RTTESTS}"
 # FIXTHIS: add -t option for limiting the duration of each test group execution
 for i in ${TESTS}; do
-    echo "ltp_target_run: doing test $i"
+    echo "ltp_target_run: doing test $i ($(date))"
     mkdir -p ${OUTPUT_DIR}/${i}
     ./runltp -C ${OUTPUT_DIR}/${i}/failed.log \
              -l ${OUTPUT_DIR}/${i}/result.log \
@@ -39,13 +39,13 @@ export LOGFILE=${OUTPUT_DIR}/pts.log
 # remove any previous posix results
 test -e "${LOGFILE}" && rm "${LOGFILE}"
 for i in ${PTSTESTS}; do
-    echo "ltp_target_run: doing test $i" | tee -a $LOGFILE
+    echo "ltp_target_run: doing test $i ($(date))" | tee -a $LOGFILE
     # PTS scripts seem to have some bashims
     /bin/bash ./bin/run-posix-option-group-test.sh $i
 for i in ${RTTESTS}; do
-    echo "ltp_target_run: doing test $i"
+    echo "ltp_target_run: doing test $i ($(date))"
     /bin/bash ./testscripts/test_realtime.sh -t $i
 [ -e testcases/realtime/logs ] && cat testcases/realtime/logs/*.log > ${OUTPUT_DIR}/rt.log

More information about the Fuego mailing list