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 2018-04-11 13:27:15 -04:00 committed by Atomic Bot
parent 9d1dacfcc8
commit ab61f812c4
2 changed files with 6 additions and 5 deletions

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

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