[LTP] [PATCH 2/3 v2] tst_supported_fs: Fix return codes

Petr Vorel pvorel@suse.cz
Thu Sep 22 23:09:30 CEST 2022


exit code 2 is for errors not related to filesystem detection.

Fixes: eb47b4497 ("tst_supported_fs: Support skip list when query single fs")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/lib/tst_supported_fs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/lib/tst_supported_fs.c b/testcases/lib/tst_supported_fs.c
index 947aa4dae..f644bbd3f 100644
--- a/testcases/lib/tst_supported_fs.c
+++ b/testcases/lib/tst_supported_fs.c
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
 		switch (ret) {
 		case '?':
 			usage();
-			return 1;
+			return 2;
 
 		case 'h':
 			usage();
@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
 		case 's':
 			skiplist = parse_skiplist(optarg);
 			if (!skiplist)
-				return 1;
+				return 2;
 			break;
 
 		case 'd':
-- 
2.37.3



More information about the ltp mailing list