tests/installed: Move auto-build logic to playbook-run.sh

This makes it a bit more convenient to make a code change, then
`rm -rf build && ./playbook-run.sh ...`.

Closes: #1535
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2018-04-11 19:11:07 +00:00
1 parent 9d1dacfcc8
commit ab61f812c4
2 files changed
+6 -5

No files matched your search

+6
View File
@@ -3,6 +3,12 @@
# TEST_SUBJECTS being set.
set -xeuo pipefail
dn=$(cd $(dirname $0) && pwd)
if ! test -d build; then
mkdir -p build
(cd build && ${dn}/../../ci/build-rpm.sh)
fi
# https://fedoraproject.org/wiki/CI/Tests
if test -z "${TEST_SUBJECTS:-}"; then
cat <<EOF
-5
View File
@@ -5,11 +5,6 @@ set -xeuo pipefail
dn=$(cd $(dirname $0) && pwd)
if ! test -d build; then
mkdir -p build
(cd build && ${dn}/../../ci/build-rpm.sh)
fi
# TODO: parallelize this
PLAYBOOKS=${PLAYBOOKS:-nondestructive.yml destructive.yml}
for playbook in $PLAYBOOKS; do