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 <katexochen0@gmail.com>
(cherry picked from commit 0d1ae05a7f)
This commit is contained in:
Paul Meyer
2026-10-16 11:36:32 +01:00
committed by Luca Boccassi
parent ffb5f4bf45
commit 6d80332e9a
+2
View File
@@ -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")