[ostree] tests: More TAP fixups
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: More TAP fixups
- Date: Thu, 3 Mar 2016 23:04:03 +0000 (UTC)
commit 12db46e5af64a0d30aed2daa0224d36230adaac4
Author: Colin Walters <walters verbum org>
Date: Thu Mar 3 18:00:54 2016 -0500
tests: More TAP fixups
Hopefully getting closer now.
tests/basic-test.sh | 2 ++
tests/test-pull-corruption.sh | 1 +
tests/test-rofiles-fuse.sh | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/basic-test.sh b/tests/basic-test.sh
index 5e8ac5e..c7ff046 100755
--- a/tests/basic-test.sh
+++ b/tests/basic-test.sh
@@ -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}
diff --git a/tests/test-pull-corruption.sh b/tests/test-pull-corruption.sh
index f6d1605..646113a 100755
--- a/tests/test-pull-corruption.sh
+++ b/tests/test-pull-corruption.sh
@@ -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
diff --git a/tests/test-rofiles-fuse.sh b/tests/test-rofiles-fuse.sh
index 2009571..444fbce 100755
--- a/tests/test-rofiles-fuse.sh
+++ b/tests/test-rofiles-fuse.sh
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]