linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: tests: not_run for global_prereq fail
@ 2023-07-25  9:43 Anand Jain
  2023-07-27 16:51 ` David Sterba
  0 siblings, 1 reply; 5+ messages in thread
From: Anand Jain @ 2023-07-25  9:43 UTC (permalink / raw)
  To: linux-btrfs

Prerequisite checks using global_prereq() aren't global, so why
fail and stop further test cases? Instead, just don't run them.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 tests/common | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/common b/tests/common
index 602a4122f8bd..4bde06ad9d1d 100644
--- a/tests/common
+++ b/tests/common
@@ -395,7 +395,7 @@ check_global_prereq()
 {
 	type -p "$1" &> /dev/null
 	if [ $? -ne 0 ]; then
-		_fail "Failed system wide prerequisities: $1";
+		_not_run "Failed system wide prerequisities: $1";
 	fi
 }
 
-- 
2.39.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-11 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25  9:43 [PATCH] btrfs-progs: tests: not_run for global_prereq fail Anand Jain
2023-07-27 16:51 ` David Sterba
2023-07-28  3:39   ` Anand Jain
2023-07-28  3:51     ` Anand Jain
2023-08-11 17:57       ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).