]> arthur.barton.de Git - bup.git/commitdiff
Skip test_handling_of_incorrect_existing_linux_xattrs() when under fakeroot.
authorRobert S. Edmonds <edmonds@debian.org>
Fri, 9 Aug 2013 00:31:38 +0000 (20:31 -0400)
committerRob Browning <rlb@defaultvalue.org>
Sat, 10 Aug 2013 17:26:34 +0000 (12:26 -0500)
Don't try to do a loopback mount when running under fakeroot ("mount:
only root can do that").

Signed-off-by: Robert S. Edmonds <edmonds@debian.org>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tmetadata.py

index 471cb2f4c8d3b43deef45f2e4566b278af18b7f8..4e7884a808f167244629b1f10ed19a8bad962012 100644 (file)
@@ -244,7 +244,7 @@ from bup.metadata import xattr
 if xattr:
     @wvtest
     def test_handling_of_incorrect_existing_linux_xattrs():
-        if not is_superuser():
+        if not is_superuser() or detect_fakeroot():
             WVMSG('skipping test -- not superuser')
             return
         setup_testfs()