diff options
author | Petr Vorel <pvorel@suse.cz> | 2018-05-24 16:23:02 +0200 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2018-05-25 18:01:16 +0200 |
commit | 21e77dd845ec473fe0bc1c45f904baf7563625e5 (patch) | |
tree | 1274599d569b325509fc6528bb3a6e153732ff36 /testcases/lib | |
parent | 64ce601d4c839ba5a4d38758e9e9f698d534e10d (diff) |
lib/tst_test.sh: Fix test name function detection for TST_CNT
Reported-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'testcases/lib')
-rw-r--r-- | testcases/lib/tst_test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh index 464c4c41e..779383392 100644 --- a/testcases/lib/tst_test.sh +++ b/testcases/lib/tst_test.sh @@ -349,7 +349,7 @@ tst_run() #TODO check that test reports some results for each test function call while [ $TST_ITERATIONS -gt 0 ]; do if [ -n "$TST_CNT" ]; then - if type test1 > /dev/null 2>&1; then + if type ${TST_TESTFUNC}1 > /dev/null 2>&1; then for tst_i in $(seq $TST_CNT); do local res=$(tst_resstr) $TST_TESTFUNC$tst_i |