diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-29 23:13:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-16 22:16:29 -0500 |
commit | 6d8e7b025da414e26b096c11216dd8d7e236fef3 (patch) | |
tree | 9d024fd0627e890f3902a047a55f0ef9c5b28fbf | |
parent | 4118cb07c820cc3d5b3cca780613f451a9eaf9e3 (diff) |
Add ktest style markers for test starting and finishing
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rwxr-xr-x | check | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |