X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Ftest-framework.sh;h=3a9573e917a9eec02b52c92fbafc0e04603ad77c;hp=ea708a2293f7feb2db63c014db2664e5b91398d7;hb=e44a6b616764810093a3c6f3d15254793865ffb7;hpb=72a29cd28c104ae0948fe5f29146005aa1e5a999 diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index ea708a2..3a9573e 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2713,6 +2713,7 @@ run_one_logged() { rm -rf $LOGDIR/err echo + log_sub_test_begin test_${1} (run_one $1 "$2") 2>&1 | tee $test_log local RC=${PIPESTATUS[0]} @@ -2722,7 +2723,7 @@ run_one_logged() { duration=$((`date +%s` - $BEFORE)) pass "(${duration}s)" [ -f $LOGDIR/err ] && TEST_ERROR=$(cat $LOGDIR/err) - log_sub_test test_${1} $TEST_STATUS $duration "$RC" "$TEST_ERROR" + log_sub_test_end $TEST_STATUS $duration "$RC" "$TEST_ERROR" if [ -f $LOGDIR/err ]; then $FAIL_ON_ERROR && exit $RC @@ -3929,8 +3930,12 @@ log_test() { yml_log_test $1 >> $YAML_LOG } -log_sub_test() { - yml_log_sub_test $@ >> $YAML_LOG +log_sub_test_begin() { + yml_log_sub_test_begin $@ >> $YAML_LOG +} + +log_sub_test_end() { + yml_log_sub_test_end $@ >> $YAML_LOG } run_llverdev()