X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=b5e346c0c544abdfdfe7700b7b14385123d72719;hp=6be93fe35d876ff72761bd095166a90c50fa9e48;hb=451c57d19aeff5420839701460691e8e20d13049;hpb=6dcd575d7be806dfaac5facba6fb6908a6ae076b diff --git a/test/test-lib.sh b/test/test-lib.sh index 6be93fe3..b5e346c0 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -116,6 +116,16 @@ do esac done +if test -n "$debug"; then + print_subtest () { + printf " %-4s" "[$((test_count - 1))]" + } +else + print_subtest () { + true + } +fi + if test -n "$color"; then say_color () { ( @@ -132,6 +142,7 @@ if test -n "$color"; then printf " " printf "$@" tput sgr0 + print_subtest ) } else @@ -140,6 +151,7 @@ else shift printf " " printf "$@" + print_subtest } fi