summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-29 23:13:00 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-07-11 19:28:36 -0400
commitcd50fce66be74e3c11575d22bf4a0a24ad776b0c (patch)
treed8f2627fc21ac14d2d9a7560f1ba7bd4a953fd9e /check
parent46b19597f032971a073b1207bd18e970c6161d66 (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>
Diffstat (limited to 'check')
-rwxr-xr-xcheck12
1 files changed, 8 insertions, 4 deletions
diff --git a/check b/check
index fd051c05..b5d79a08 100755
--- a/check
+++ b/check
@@ -903,7 +903,7 @@ function run_section()
"" &> /dev/null
fi
- echo -n "$seqnum"
+ echo "========= TEST $seqnum"
if $showme; then
if _expunge_test $seqnum; then
@@ -992,10 +992,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"
@@ -1097,6 +1095,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