]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
skip tests that require root privileges
authorRobert S. Edmonds <edmonds@debian.org>
Mon, 4 Mar 2013 01:16:53 +0000 (20:16 -0500)
committerRobert S. Edmonds <edmonds@debian.org>
Mon, 4 Mar 2013 01:32:57 +0000 (20:32 -0500)
debian/rules
t/test-meta.sh

index b8acddb47dff3e7bc800f0363e29979b3c43c141..f4e58806fb7066dfcc075e8ad89bad063205a7b9 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+NO_ROOT_PRIVILEGES := 1
+
 override_dh_auto_configure:
        mv lib/bup/_version.py.pre lib/bup/_oldversion.py.pre
        cp -p debian/_version.py.pre lib/bup
index 3a1da1d47522af76563e71f00efd63027c71b504..774893862ee3a8a61c778b39940e70c95b69c72e 100755 (executable)
@@ -31,7 +31,7 @@ genstat()
 
 actually-root()
 {
-    test "$(whoami)" == root -a -z "$FAKEROOTKEY"
+    test "$(whoami)" == root -a -z "$FAKEROOTKEY" -a -z "$NO_ROOT_PRIVILEGES"
 }
 
 force-delete()