From 6d8e7b025da414e26b096c11216dd8d7e236fef3 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 29 Jun 2022 23:13:00 -0400 Subject: Add ktest style markers for test starting and finishing Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- check | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/check b/check index 7a3a12dc..56fa6b9e 100755 --- a/check +++ b/check @@ -896,7 +896,7 @@ function run_section() "" &> /dev/null fi - echo -n "$seqnum" + echo "========= TEST $seqnum" if $showme; then if _expunge_test $seqnum; then @@ -985,10 +985,8 @@ function run_section() if [ -f $seqres.notrun ]; then $timestamp && _timestamp stop=`_wallclock` - $timestamp || echo -n "[not run] " - $timestamp && echo " [not run]" && \ - echo -n " $seqnum -- " cat $seqres.notrun + echo "========= NOTRUN $seqnum" tc_status="notrun" _stash_test_status "$seqnum" "$tc_status" @@ -1090,6 +1088,12 @@ function run_section() fi fi + if [ "$tc_status" == "fail" ]; then + echo "========= FAILED $seqnum in $(($stop - $start))s, exit status $sts" + else + echo "========= PASSED $seqnum in $(($stop - $start))s, exit status $sts" + fi + if [ "$tc_status" == "fail" ] && $failfast; then _dump_err "exiting after first test failure" status=1 -- cgit v1.2.3