From f8596112cbad0072cdc957c0ea06695afda246dc Mon Sep 17 00:00:00 2001 From: Michael Petlan Date: Fri, 25 Sep 2026 00:30:26 +0200 Subject: [PATCH] perf test attr: Propagate the return value from the test to the wrapper Currently it does not matter what the python script actually returns, the test always passes, as the $err variable is always 0. Fix that. Fixes: 8519e4f44c2af722 ("perf test: Add a shell wrapper for "Setup struct perf_event_attr"") Signed-off-by: Michael Petlan Acked-by: Namhyung Kim Tested-by: Arnaldo Carvalho de Melo Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/shell/attr.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/tests/shell/attr.sh b/tools/perf/tests/shell/attr.sh index 5a4e43b2471d..307e1535795a 100755 --- a/tools/perf/tests/shell/attr.sh +++ b/tools/perf/tests/shell/attr.sh @@ -18,5 +18,6 @@ trap trap_cleanup EXIT TERM INT shelldir=$(dirname "$0") perf_path=$(which perf) python "${shelldir}"/lib/attr.py -d "${shelldir}"/attr -v -p "$perf_path" +err=$? cleanup exit $err