]> arthur.barton.de Git - bup.git/blobdiff - t/lib.sh
Add tests for index --no-check-device, and support for t/mnt.
[bup.git] / t / lib.sh
index e8e526812eee939e288595039b99c25b6b6ed5ee..5696c61ed4b9b58170d9a5dfaa13594371e3d7dc 100644 (file)
--- a/t/lib.sh
+++ b/t/lib.sh
@@ -1,3 +1,9 @@
+# Assumes shell is Bash.
+
+actually-root()
+{
+    test "$(whoami)" == root -a -z "$FAKEROOTKEY"
+}
 
 force-delete()
 {