From: Colin Walters Date: Wed, 11 Apr 2018 17:27:15 +0000 (-0400) Subject: tests/installed: Move auto-build logic to playbook-run.sh X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~24^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ab61f812c4a9d21cae4290f3972f6769cb9773b1;p=ostree.git 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 --- diff --git a/tests/installed/playbook-run.sh b/tests/installed/playbook-run.sh index c1887297..3136899f 100755 --- a/tests/installed/playbook-run.sh +++ b/tests/installed/playbook-run.sh @@ -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 <