From 0d1ae05a7f9511915528a19a5a98b9cfbbb80fca Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Tue, 22 Sep 2026 10:29:11 +0200 Subject: [PATCH] test: strip directory from subtest name in summary The integration tests are started with the absolute path of the test unit as $0, so run_subtests() derives absolute paths for the subtests and the summary prints them in full. Show just the script name, the directory is the same for every entry and only adds noise. Signed-off-by: Paul Meyer --- test/units/test-control.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/units/test-control.sh b/test/units/test-control.sh index 1e352c44b3..a1f9de0f87 100644 --- a/test/units/test-control.sh +++ b/test/units/test-control.sh @@ -84,6 +84,8 @@ _show_summary() {( _record_subtest_rc() { local subtest="${1:?}" rc="${2:?}" + subtest="${subtest##*/}" + if [[ $rc -eq $_SUBTEST_SKIP_RC ]]; then echo "Subtest $subtest skipped" _SKIPPED_TESTS+=("$subtest")