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 <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2025-11-04 19:01:57 -05:00
parent 28bc6ca6b9
commit 005e701b77

View File

@@ -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