tests: skip tests using gjs/parallel if they are not installed
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes #131
This commit is contained in:
parent
8b9effea56
commit
75cdbb8e82
|
|
@ -40,6 +40,9 @@ echo "rev=${rev}"
|
||||||
${CMD_PREFIX} ostree admin deploy --karg=root=LABEL=MOO --karg=quiet --os=testos testos:testos/buildmaster/x86_64-runtime
|
${CMD_PREFIX} ostree admin deploy --karg=root=LABEL=MOO --karg=quiet --os=testos testos:testos/buildmaster/x86_64-runtime
|
||||||
assert_has_dir sysroot/boot/ostree/testos-${bootcsum}
|
assert_has_dir sysroot/boot/ostree/testos-${bootcsum}
|
||||||
|
|
||||||
|
# If parallel is not installed, skip the test
|
||||||
|
parallel --help >/dev/null 2>&1 || exit 77
|
||||||
|
|
||||||
parallel_cmd=parallel
|
parallel_cmd=parallel
|
||||||
if parallel --help | grep -q -e --no-notice; then
|
if parallel --help | grep -q -e --no-notice; then
|
||||||
parallel_cmd="${parallel_cmd} --no-notice"
|
parallel_cmd="${parallel_cmd} --no-notice"
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ do_corrupt_pull_test() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If gjs is not installed, skip the test
|
||||||
|
gjs --help >/dev/null 2>&1 || exit 77
|
||||||
|
|
||||||
# FIXME - ignore errors here since gjs in RHEL7 has the final
|
# FIXME - ignore errors here since gjs in RHEL7 has the final
|
||||||
# unrooting bug
|
# unrooting bug
|
||||||
gjs $(dirname $0)/corrupt-repo-ref.js ${repopath} main || true
|
gjs $(dirname $0)/corrupt-repo-ref.js ${repopath} main || true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue