diff options
author | Simon McVittie <smcv@debian.org> | 2021-10-05 23:51:37 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2021-10-05 23:51:55 +0100 |
commit | 92ed1857ae49a5e4d16bea345b6b5bf6671bf990 (patch) | |
tree | 9be0588a17ef9158e040afa3d87e99ded2fce5b8 | |
parent | 8cb5d920c4b89d17c196f30f2c59fcbd4c762a17 (diff) | |
download | ostree-92ed1857ae49a5e4d16bea345b6b5bf6671bf990.tar.gz |
test-commit-sign.sh: Skip a unit test when running as an installed-test
Signed-off-by: Simon McVittie <smcv@debian.org>
-rwxr-xr-x | tests/test-commit-sign.sh | 8 |
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 |