]> arthur.barton.de Git - bup.git/blobdiff - t/test-restore-map-owner.sh
test-restore-map-owner: accommodate python 3 and test there
[bup.git] / t / test-restore-map-owner.sh
index bf9362e46dc39614e900ddf6df68875649d25d73..84f3b08a2cc145ff6eddb0b0c556f098a62e0fd1 100755 (executable)
@@ -87,10 +87,10 @@ 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)"