]> arthur.barton.de Git - bup.git/blobdiff - t/lib.sh
configure: test for functional readline more carefully
[bup.git] / t / lib.sh
index e9dc25e3cecb62125801894ba9c093d68786c3c3..3ea72266a121f4e7e323096dd16bd235222763dc 100644 (file)
--- a/t/lib.sh
+++ b/t/lib.sh
@@ -2,22 +2,20 @@
 
 bup_t_lib_script_home=$(cd "$(dirname $0)" && pwd) || exit $?
 
-bup-python()
-{
-    "$bup_t_lib_script_home/../cmd/bup-python" "$@"
-}
+bup-cfg-py() { "$bup_t_lib_script_home/../config/bin/python" "$@"; }
+bup-python() { "$bup_t_lib_script_home/../dev/bup-python" "$@"; }
 
 force-delete()
 {
     "$bup_t_lib_script_home/force-delete" "$@"
 }
 
-realpath()
+resolve-parent()
 {
     test "$#" -eq 1 || return $?
     echo "$1" | \
         PYTHONPATH="$bup_t_lib_script_home/../lib" bup-python -c \
-        "import sys, bup.helpers; print bup.helpers.realpath(sys.stdin.readline())" \
+        "import sys, bup.helpers; print(bup.helpers.resolve_parent(sys.stdin.readline()))" \
         || return $?
 }