summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2021-10-06 15:26:08 -0400
committerGitHub <noreply@github.com>2021-10-06 15:26:08 -0400
commit307707c3a0d6d93e1e2afc2001b3eab1aa6ecfde (patch)
tree74bb29d0be82fc6683e175cee88a76e4e51be7e2
parentccb4a1fc35516b5d5ce0bb68587f9491840d5531 (diff)
parent92ed1857ae49a5e4d16bea345b6b5bf6671bf990 (diff)
downloadostree-307707c3a0d6d93e1e2afc2001b3eab1aa6ecfde.tar.gz
Merge pull request #2459 from smcv/test-commit-sign
test-commit-sign.sh: Skip a unit test when running as an installed-test
-rwxr-xr-xtests/test-commit-sign.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-commit-sign.sh b/tests/test-commit-sign.sh
index c3f9ce63..e1759198 100755
--- a/tests/test-commit-sign.sh
+++ b/tests/test-commit-sign.sh
@@ -88,8 +88,12 @@ assert_file_has_content_literal show.txt 'Found 1 signature'
echo "ok pull verify"
# Run tests written in C
-${OSTREE_UNINSTALLED}/tests/test-commit-sign-sh-ext
-echo "ok extra C tests"
+if [ -n "${OSTREE_UNINSTALLED:-}" ]; then
+ ${OSTREE_UNINSTALLED}/tests/test-commit-sign-sh-ext
+ echo "ok extra C tests"
+else
+ echo "ok # SKIP test only available when running uninstalled"
+fi
# Clean things up and reinit
rm repo -rf