]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/sched_ext: Improve runner error reporting for invalid arguments
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Tue, 7 Apr 2026 23:57:15 +0000 (07:57 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 9 Apr 2026 01:20:44 +0000 (15:20 -1000)
commitff1befcb168395481fd6a28d8036b707cb7e7a13
tree13a18da424e2404d62e7ec42709d2b9768774cdf
parent393754191b85b3f76d9cc44dda5209ef23337e8a
selftests/sched_ext: Improve runner error reporting for invalid arguments

Report an error for './runner foo' (positional arg instead of -t) and
for './runner -t foo' when the filter matches no tests. Previously both
cases produced no error output.

Pre-scan the test list before the main loop so the error is reported
immediately, avoiding spurious SKIP output from '-s' when no tests
match.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/runner.c