diff options
Diffstat (limited to 'test/test-common.sh')
-rw-r--r-- | test/test-common.sh | 3 |
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 |