From: Thomas Weißschuh Date: Wed, 4 Jan 2023 01:11:04 +0000 (+0000) Subject: tests: add ts_skip_exitcode_not_supported X-Git-Tag: v2.39-rc1~203^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe73ef9789132f7e3bdcae5cecd3a8dd40876f92;p=thirdparty%2Futil-linux.git tests: add ts_skip_exitcode_not_supported --- diff --git a/tests/functions.sh b/tests/functions.sh index 5752a2cdae..25f988fc64 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -1119,3 +1119,9 @@ function ts_get_asan_rt_path { echo "$rt_path" fi } + +function ts_skip_exitcode_not_supported { + if [ $? -eq $TS_EXIT_NOTSUPP ]; then + ts_skip "functionality not implemented by system" + fi +}