From 005e701b774477ad4a29c084e6376d2d0eb0532b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 4 Nov 2025 19:01:57 -0500 Subject: [PATCH] tests: don't print absolute paths in test output To match other non-libtool tests. Before: PASS: /path/to/libguestfs.git/tests/c-api/.libs/test-config After: PASS: c-api/.libs/test-config Signed-off-by: Cole Robinson --- build-aux/guestfs-test-driver | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-aux/guestfs-test-driver b/build-aux/guestfs-test-driver index 4de380213..5e30992ca 100755 --- a/build-aux/guestfs-test-driver +++ b/build-aux/guestfs-test-driver @@ -81,6 +81,11 @@ if test x"$missing_opts" != x; then usage_error "the following mandatory options are missing:$missing_opts" fi +# Don't print absolute paths in test output +# Without this, C program tests were printed like +# PASS: /path/to/libguestfs.git/tests/c-api/.libs/test-just-header +test_name=$(echo "$test_name" | sed "s|$(pwd)/||") + if test $# -eq 0; then usage_error "missing argument" fi