summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2026-09-16 11:43:01 -0700
committerIngo Molnar <mingo@kernel.org>2026-09-21 11:01:22 +0200
commit48dafeead17e96ee5a63816580a0b92732ea32f6 (patch)
treec414403c907915e824f6904e9bae85173d705fd6 /tools/perf/scripts/python
parent8593055b7a4015761b3a4bbc3a64371bc42d1d12 (diff)
objtool/klp: Run the klp tests under set -u
Most of these assertions end in a grep, and an empty pattern matches anything. So a mistyped variable name in a test does not fail: it expands to nothing, the grep succeeds, and the test reports a pass having checked nothing. assert_section "$sectoin_nmae" becomes a search for two adjacent spaces, which readelf's column padding satisfies on every line. Refuse unset variables. lib.sh guards the few genuinely optional expansions it has with ${x:-}. Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Assisted-by: Claude:claude-opus-5 Link: https://patch.msgid.link/20260916184351.2720310-9-song@kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions