File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ if [ -n "${BOSKOS_HOST:-}" ]; then
8181fi
8282
8383# Run e2e prerequisites concurrently with devstack build to save time
84- build_out= $( mktemp )
84+ prerequisites_log= " ${ARTIFACTS} /logs/e2e-prerequisites.log "
8585(
8686 # Run prerequisites at low priority to avoid slowing down devstack tasks,
8787 # which generally take much longer
@@ -101,18 +101,18 @@ build_out=$(mktemp)
101101 retry 10 10 $( get_ssh_cmd) ${CONTROLLER_IP} -- sudo chown root:root capo-e2e-image.tar
102102 retry 10 10 $( get_ssh_cmd) ${CONTROLLER_IP} -- sudo chmod u=rw,g=r,o=r capo-e2e-image.tar
103103 retry 10 10 $( get_ssh_cmd) ${CONTROLLER_IP} -- sudo mv capo-e2e-image.tar /var/www/html/capo-e2e-image.tar
104- ) > " $build_out " 2>&1 &
104+ ) > " $prerequisites_log " 2>&1 &
105105build_pid=$!
106106
107107# Build the devstack environment
108108hack/ci/create_devstack.sh
109109
110- # Wait for and capture exit of build process
111- # Log build output and exit if the build failed
112- wait $build_pid
113- ret= $?
114- cat " $build_out "
115- [ " $ret " != 0 ] && exit " $ret "
110+ # Check exit of prerequisites build, waiting for it to complete if necessary
111+ if ! wait $build_pid ; then
112+ echo " Building e2e prerequisites failed "
113+ cat " $prerequisites_log "
114+ exit 1
115+ fi
116116
117117make test-e2e OPENSTACK_CLOUD_YAML_FILE=" $( pwd) /clouds.yaml"
118118test_status=" ${?} "
You can’t perform that action at this time.
0 commit comments