From: Robert S. Edmonds Date: Mon, 4 Mar 2013 01:16:53 +0000 (-0500) Subject: skip tests that require root privileges X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d9cce5fe6ae99fb5a335765a7c0f2ac19568bf22;p=packages%2Fb%2Fbup.git skip tests that require root privileges --- diff --git a/debian/rules b/debian/rules index b8acddb..f4e5880 100755 --- a/debian/rules +++ b/debian/rules @@ -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 diff --git a/t/test-meta.sh b/t/test-meta.sh index 3a1da1d..7748938 100755 --- a/t/test-meta.sh +++ b/t/test-meta.sh @@ -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()