Signed-off-by: Rob Browning <rlb@defaultvalue.org>
)
}
+actually-root()
+{
+ test "$(whoami)" == root -a -z "${FAKEROOTKEY}"
+}
+
force-delete()
{
- if test "$(whoami)" != root
+ if ! actually-root
then
rm -rf "$@"
else
)
}
-if test "$(whoami)" == root
+if actually-root
then
umount "${TOP}/bupmeta.tmp/testfs" || true
fi
)
# Root-only tests: ACLs, Linux attr, Linux xattr, etc.
-if test "$(whoami)" == root
+if actually-root
then
(
cleanup_at_exit()
cp -a src testfs/src
(cd testfs && test-src-create-extract)
- WVSTART 'meta - atime'
+ WVSTART 'meta - atime (as root)'
force-delete testfs/src
mkdir testfs/src
(