tests: More TAP fixups

Hopefully getting closer now.
This commit is contained in:
Colin Walters 2016-03-03 18:00:54 -05:00
parent fbd9409ebb
commit 12db46e5af
3 changed files with 4 additions and 0 deletions

View File

@ -425,6 +425,8 @@ if test "$(id -u)" != "0"; then
assert_has_file expected-fail
assert_file_has_content error-message "Permission denied"
echo "ok unwritable repo was caught"
else
echo "ok # SKIP not run when root"
fi
cd ${test_tmpdir}

View File

@ -22,6 +22,7 @@ set -euo pipefail
# If gjs is not installed, skip the test
if ! gjs --help >/dev/null 2>&1; then
echo "1..0 # SKIP no gjs"
exit 0
fi
. $(dirname $0)/libtest.sh

View File

@ -21,6 +21,7 @@ set -euo pipefail
if ! fusermount --version >/dev/null 2>&1; then
echo "1..0 # SKIP no fusermount"
exit 0
fi
. $(dirname $0)/libtest.sh