Commit 1ab138fe authored by Veronika Molnarova's avatar Veronika Molnarova Committed by Arnaldo Carvalho de Melo
Browse files

perf test perftool_testsuite: Return correct value for skipping



In 'perf test', a return value 2 represents that the test case was
skipped. Fix this value for perftool_testsuite test cases to
differentiate between skip and pass values.

Signed-off-by: default avatarVeronika Molnarova <vmolnaro@redhat.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20250113182605.130719-3-vmolnaro@redhat.com


Signed-off-by: default avatarMichael Petlan <mpetlan@redhat.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 5afd6d38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ TEST_RESULT=0
BLACKFUNC_LIST=`head -n 5 /sys/kernel/debug/kprobes/blacklist 2> /dev/null | cut -f2`
if [ -z "$BLACKFUNC_LIST" ]; then
	print_overall_skipped
	exit 0
	exit 2
fi

# try to find vmlinux with DWARF debug info
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ fi
check_kprobes_available
if [ $? -ne 0 ]; then
	print_overall_skipped
	exit 0
	exit 2
fi


+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ TEST_RESULT=0

if ! check_kprobes_available; then
	print_overall_skipped
	exit 0
	exit 2
fi


+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ TEST_RESULT=0

if ! check_kprobes_available; then
	print_overall_skipped
	exit 0
	exit 2
fi

# Check for presence of DWARF
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ TEST_RESULT=0

if ! check_kprobes_available; then
	print_overall_skipped
	exit 0
	exit 2
fi

# Check for presence of DWARF
Loading