]> git.cworth.org Git - notmuch/blobdiff - test/test-lib.sh
test: mark some tests as broken when run as root.
[notmuch] / test / test-lib.sh
index eec5c5b4508c1224d7b2510fe3822ce13e374bc0..1a6525dfa0e0d508b5289ad67f77dba8809e1cb9 100644 (file)
@@ -740,6 +740,12 @@ test_subtest_known_broken () {
        test_subtest_known_broken_=t
 }
 
        test_subtest_known_broken_=t
 }
 
+test_subtest_broken_for_root () {
+   if [ "$EUID" = "0" ]; then
+       test_subtest_known_broken_=t
+    fi
+}
+
 test_expect_success () {
        exec 1>&6 2>&7          # Restore stdout and stderr
        if [ -z "$inside_subtest" ]; then
 test_expect_success () {
        exec 1>&6 2>&7          # Restore stdout and stderr
        if [ -z "$inside_subtest" ]; then