Merge pull request #2459 from smcv/test-commit-sign

test-commit-sign.sh: Skip a unit test when running as an installed-test
This commit is contained in:
Colin Walters 2021-10-06 15:26:08 -04:00 committed by GitHub
commit 307707c3a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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