summaryrefslogtreecommitdiff
path: root/test/test-common.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-02-14 15:26:13 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-02-14 16:04:24 -0500
commit3b76f7dbfcec18ad22663663acf0355a61f4eb60 (patch)
tree01a9a31c6ea9116bd933a39dd530491ddf791356 /test/test-common.sh
parent05fc5ece05f10b593c378c0b5f1170107dcfe1b6 (diff)
Add librechroot delete tests.
Diffstat (limited to 'test/test-common.sh')
-rw-r--r--test/test-common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-common.sh b/test/test-common.sh
index 2a8fc37..40e1377 100644
--- a/test/test-common.sh
+++ b/test/test-common.sh
@@ -59,6 +59,9 @@ require() (
if libremessages in_array "sudo" "$@" && ! [[ $SUDO ]]; then
missing+=('sudo')
fi
+ if libremessages in_array "btrfs" "$@" && ! [[ "$(stat -f -c %T "$chrootdir" 2>/dev/null || true)" == 'btrfs' ]]; then
+ missing+=('btrfs')
+ fi
if (( ${#missing[@]} )); then
libremessages warning "Next test requires %s; Skipping (passing)..." "$(echo "${missing[*]}"|sed 's/ /, /g')" &>/dev/tty
return 1