summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGabriele Monaco <gmonaco@redhat.com>2026-07-23 09:45:32 +0200
committerGabriele Monaco <gmonaco@redhat.com>2026-07-31 16:27:46 +0200
commit7c700dcd74640b9f0f5eaafdc6fdc4d5741666e2 (patch)
treec7c5b8359c2e2cc63e6eb3b0eb011eb84da1ab55 /tools/perf/scripts/python
parent51f3fe704a880c7061057d9b22ada8964bc4c9de (diff)
selftests/verification: Fix wrong errexit assumption
RV selftest rely on bash errexit (set -e) to terminate with error, when a step is expected to return false, the following syntax is used: ! cmd This however prevents the test from exiting when cmd is false (desired) but doesn't exit if cmd is true, since commands prefixed with ! are explicitly excluded from errexit. Use the syntax ! cmd || false Which ends up checking the exit value of ! cmd and supplies a false command for errexit to evaluate. Reviewed-by: Wen Yang <wen.yang@linux.dev> Acked-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20260723074534.43521-16-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions