[LTP] [PATCH 1/3] tst_test.sh: Allow -i0
Petr Vorel
pvorel@suse.cz
Fri May 20 14:43:12 CEST 2022
-i0 is supported in C API, allowing to test only that setup and
cleanup are coded properly (no test is being run), which is useful for
debugging.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/lib/tst_test.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index 28b7d12ba..c6e0752f3 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -646,8 +646,8 @@ tst_run()
tst_brk TBROK "Expected number (-i) not '$TST_ITERATIONS'"
fi
- if [ "$TST_ITERATIONS" -le 0 ]; then
- tst_brk TBROK "Number of iterations (-i) must be > 0"
+ if [ "$TST_ITERATIONS" -lt 0 ]; then
+ tst_brk TBROK "Number of iterations (-i) must be >= 0"
fi
[ "$TST_NEEDS_ROOT" = 1 ] && tst_require_root
--
2.36.1
More information about the ltp
mailing list