diff mbox series

[2/4] commands: Fix tst_brk TFAIL

Message ID 20240123162647.210424-3-pvorel@suse.cz
State Accepted
Headers show
Series shell: fix regression since 1878502f6 | expand

Commit Message

Petr Vorel Jan. 23, 2024, 4:26 p.m. UTC
It needs to be replaced with tst_res TFAIL and return

Fixes: 1878502f6 ("tst_test.sh/tst_brk(): Allow only TBROK and TCONF")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/commands/gzip/gzip_tests.sh | 3 ++-
 testcases/commands/mv/mv_tests.sh     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/testcases/commands/gzip/gzip_tests.sh b/testcases/commands/gzip/gzip_tests.sh
index fdc933ea2..3262c555b 100755
--- a/testcases/commands/gzip/gzip_tests.sh
+++ b/testcases/commands/gzip/gzip_tests.sh
@@ -82,7 +82,8 @@  test1()
 	gzip -r tst_gzip.tmp > tst_gzip.err 2>&1
 	if [ $? -ne 0 ]; then
 		cat tst_gzip.err
-		tst_brk TFAIL "Test #1: gzip -r failed"
+		tst_res TFAIL "Test #1: gzip -r failed"
+		return
 	fi
 
 	tst_res TINFO "Test #1: creating output file"
diff --git a/testcases/commands/mv/mv_tests.sh b/testcases/commands/mv/mv_tests.sh
index 91648dd8f..ae8b8701d 100755
--- a/testcases/commands/mv/mv_tests.sh
+++ b/testcases/commands/mv/mv_tests.sh
@@ -88,7 +88,8 @@  test1()
 	mv tst_mv.old tst_mv.new > tst_mv.err 2>&1
 	if [ $? -ne 0 ]; then
 		cat tst_mv.err
-		tst_brk TFAIL "Test #1: 'mv tst_mv.old tst_mv.new' failed"
+		tst_res TFAIL "Test #1: 'mv tst_mv.old tst_mv.new' failed"
+		return
 	fi
 
 	tst_res TINFO "Test #1: creating output file"