From: Robert S. Edmonds Date: Fri, 9 Aug 2013 00:31:38 +0000 (-0400) Subject: Skip test_handling_of_incorrect_existing_linux_xattrs() when under fakeroot. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9a35d447aded4f7d27da1c98181a19c08d29d0d8;p=packages%2Fb%2Fbup.git Skip test_handling_of_incorrect_existing_linux_xattrs() when under fakeroot. Don't try to do a loopback mount when running under fakeroot ("mount: only root can do that"). Signed-off-by: Robert S. Edmonds [rlb@defaultvalue.org: adjust commit message] Reviewed-by: Rob Browning --- diff --git a/lib/bup/t/tmetadata.py b/lib/bup/t/tmetadata.py index 471cb2f..4e7884a 100644 --- a/lib/bup/t/tmetadata.py +++ b/lib/bup/t/tmetadata.py @@ -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()