]> arthur.barton.de Git - bup.git/blobdiff - t/test-fuse.sh
fuse: adjust for python 3 and test there
[bup.git] / t / test-fuse.sh
index 1732d66f2b3c4b71de209e8dd335adf3ef787df8..1ed35542473f09db017633c4b04317d7bfd68c0e 100755 (executable)
@@ -41,7 +41,7 @@ savename()
 {
     readonly secs="$1"
     WVPASS bup-python -c "from time import strftime, localtime; \
-       print strftime('%Y-%m-%d-%H%M%S', localtime($secs))"
+       print(strftime('%Y-%m-%d-%H%M%S', localtime($secs)))"
 }
 
 export TZ=UTC
@@ -49,7 +49,7 @@ export TZ=UTC
 WVPASS bup init
 WVPASS cd "$tmpdir"
 
-savestamp1=$(WVPASS bup-python -c 'import time; print int(time.time())') || exit $?
+savestamp1=$(WVPASS bup-python -c 'import time; print(int(time.time()))') || exit $?
 savestamp2=$(($savestamp1 + 1))
 
 savename1="$(savename "$savestamp1")" || exit $?