]> arthur.barton.de Git - bup.git/blobdiff - t/force-delete
tests: move all tests to test/
[bup.git] / t / force-delete
diff --git a/t/force-delete b/t/force-delete
deleted file mode 100755 (executable)
index cb12732..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env bash
-
-set -o pipefail
-
-# Try *hard* to delete $@.  Among other things, some systems have
-# r-xr-xr-x for root and other system dirs.
-
-rc=0
-rm -rf "$@" # Maybe we'll get lucky.
-for f in "$@"; do
-    test -e "$f" || continue
-    if test "$(type -p setfacl)"; then
-        setfacl -Rb "$f"
-    fi
-    if test "$(type -p chattr)"; then
-        chattr -R -aisu "$f"
-    fi
-    chmod -R u+rwX "$f"
-    rm -r "$f"
-    if test -e "$f"; then
-        rc=1
-        find "$f" -ls
-        lsattr -aR "$f"
-        getfacl -R "$f"
-    fi
-done
-
-if test "$rc" -ne 0; then
-    echo "Failed to delete everything" 1>&2
-fi
-
-exit "$rc"