Skip to content

Commit 1825b2d

Browse files
yosrym93sean-jc
authored andcommitted
scripts: Always return '2' when skipping tests
runtime.bash always returns 2 (or 77 in one case) when a test is skipped. But two cases are missed and return 0. Fix them. Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev> Link: https://patch.msgid.link/20251110232642.633672-2-yosry.ahmed@linux.dev Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 585ca3b commit 1825b2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/runtime.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ function run()
103103

104104
if [ -z "$GEN_SE_HEADER" ] && find_word "pv-host" "$groups"; then
105105
print_result "SKIP" $testname "" "no gen-se-header available for pv-host test"
106-
return
106+
return 2
107107
fi
108108

109109
if [ -z "$only_group" ] && find_word nodefault "$groups" &&
110110
skip_nodefault; then
111111
print_result "SKIP" $testname "" "test marked as manual run only"
112-
return;
112+
return 2
113113
fi
114114

115115
if [ -n "$arch" ] && [ "$arch" != "$ARCH" ]; then

0 commit comments

Comments
 (0)