From d9cce5fe6ae99fb5a335765a7c0f2ac19568bf22 Mon Sep 17 00:00:00 2001 From: "Robert S. Edmonds" Date: Sun, 3 Mar 2013 20:16:53 -0500 Subject: [PATCH] skip tests that require root privileges --- debian/rules | 2 ++ t/test-meta.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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() -- 2.39.5