| |
@@ -32,9 +32,7 @@
|
| |
# Load config settings
|
| |
HERE=$(dirname "$(realpath "$0")")
|
| |
source "$HERE/config"
|
| |
-
|
| |
- HELLO=https://frostyx.fedorapeople.org/hello-2.8-1.fc23.src.rpm
|
| |
- EVIL_HELLO=https://frostyx.fedorapeople.org/evilhello-2.8-1.fc28.src.rpm
|
| |
+ source "$HERE/helpers"
|
| |
|
| |
|
| |
rlJournalStart
|
| |
@@ -535,6 +533,10 @@
|
| |
# test use_bootstrap_container setting
|
| |
rlRun "copr-cli create ${NAME_PREFIX}BootstrapProject --use-bootstrap on --chroot $CHROOT"
|
| |
rlAssertEquals "" `curl --silent ${FRONTEND_URL}/api/coprs/${NAME_PREFIX}BootstrapProject/detail/ |jq '.detail.use_bootstrap_container'` true
|
| |
+ rlRun -s "copr-cli build ${NAME_PREFIX}BootstrapProject $HELLO --nowait"
|
| |
+ rlRun "parse_build_id"
|
| |
+ rlRun "copr watch-build $BUILD_ID"
|
| |
+ rlRun "curl $BACKEND_URL/results/${NAME_PREFIX}BootstrapProject/$CHROOT/`printf %08d $BUILD_ID`-hello/configs/child.cfg |grep \"config_opts\['use_bootstrap_container'\] = True\""
|
| |
rlRun "copr-cli modify ${NAME_PREFIX}BootstrapProject --use-bootstrap off"
|
| |
rlAssertEquals "" `curl --silent ${FRONTEND_URL}/api/coprs/${NAME_PREFIX}BootstrapProject/detail/ |jq '.detail.use_bootstrap_container'` false
|
| |
|
| |
We are already testing whether
works. I am just adding a test to create a build when the
bootstrap is on.