summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-29 23:13:00 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-07-12 00:00:53 -0400
commit2816bcc63c61256c1c710a85c1c227519a3e67a2 (patch)
tree0bc4e375b88f36a06bdd39303929a2f1c35ef318
parentb81d93ae56e2e14f155a3d20fcabc2853fb036c8 (diff)
Add ktest style markers for test starting and finishing
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rwxr-xr-xcheck12
1 files changed, 8 insertions, 4 deletions
diff --git a/check b/check
index e266687f..34cf060d 100755
--- a/check
+++ b/check
@@ -777,7 +777,7 @@ function run_section()
mkdir -p $RESULT_DIR
rm -f ${RESULT_DIR}/require_scratch*
rm -f ${RESULT_DIR}/require_test*
- echo -n "$seqnum"
+ echo "========= TEST $seqnum"
if $showme; then
_expunge_test $seqnum
@@ -851,10 +851,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"
notrun+=("$seqnum")
tc_status="notrun"
@@ -936,6 +934,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