test: "detect" the test number automagically

Specifying the test number manually is tedious and prone to errors (as
recently proven). Since we have all the necessary data to work out the
test number, let's do it automagically.
This commit is contained in:
Frantisek Sumsal
2021-04-26 19:20:18 +02:00
parent 732a487fad
commit c4cd6205e0
54 changed files with 67 additions and 56 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ TEST_DESCRIPTION="Test oneshot unit restart on failure"
# shellcheck source=test/test-functions
. "${TEST_BASE_DIR:?}/test-functions"
do_test "$@" 41
do_test "$@"