aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2024-05-03 14:08:30 -0400
committerTheodore Ts'o <tytso@mit.edu>2024-05-03 16:14:41 -0400
commit1bdd10a5507211a5fdb10890c7618820db52ac83 (patch)
tree095ea02277c87ffa5748ba0de0c701aadbf04830
parent285a5f948f4797bcb7b42dad45fef6fd90f8a01a (diff)
downloadxfstests-bld-master.tar.gz
selftests: fix ltm-auto-resume to work when the cwd is at the top-levelHEADmaster
Also use realpath in selftests/util/results so that PYTHONPATH has absolute pathnames. Fixes: 2bfca2b32639 ("selftests: Fix PYTHONPATH in util/results") Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--selftests/util/results4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftests/util/results b/selftests/util/results
index be9be1c0..a90e5620 100644
--- a/selftests/util/results
+++ b/selftests/util/results
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Helper functions for getting/comparing test results
-PYTHONPATH=$PYTHONPATH:"$DIR/test-appliance/files/usr/lib/python3/dist-packages":"$DIR/test-appliance/files/usr/lib/python3/dist-packages/junitparser"
+PYTHONPATH=$PYTHONPATH:$(realpath "$DIR/test-appliance/files/usr/lib/python3/dist-packages"):$(realpath "$DIR/test-appliance/files/usr/lib/python3/dist-packages/junitparser")
function check_debug_results ()
{
@@ -46,7 +46,7 @@ function check_debug_results ()
selftest/006) total=$COUNT; error=$COUNT ;;
esac
- python3 ./util/check_results.py --fail $fail --skip $skip \
+ python3 "$DIR/selftests/util/check_results.py" --fail $fail --skip $skip \
--error $error --total $total $results_dir $config $name
if [ "$?" -ne 0 ]; then
ret=1