]> arthur.barton.de Git - bup.git/blobdiff - t/test-restore-map-owner.sh
cirrus: make rdiff-backup completely optional for freebsd tests
[bup.git] / t / test-restore-map-owner.sh
index bf9362e46dc39614e900ddf6df68875649d25d73..4e676100134b0a006f99806723e896e242426973 100755 (executable)
@@ -82,15 +82,15 @@ WVPASS grep -qE "^uid: $other_uid\$" foo-xstat
 WVPASS grep -qE "^group: $other_group\$" foo-xstat
 WVPASS grep -qE "^gid: $other_gid\$" foo-xstat
 
-has_uid_gid_0=$(WVPASS bup-python -c "
+has_uid_gid_0=$(WVPASS bup-cfg-py -c "
 import grp, pwd
 try:
   pwd.getpwuid(0)
   grp.getgrgid(0)
-  print 'yes'
-except KeyError, ex:
+  print('yes')
+except KeyError as ex:
   pass
-" 2>/dev/null) || exit $?
+") || exit $?
 if [ "$has_uid_gid_0" == yes ]
 then
     WVSTART "restore --map-user/group/uid/gid (zero uid/gid trumps all)"