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
81
81
fi
82
82
83
83
# Run e2e prerequisites concurrently with devstack build to save time
84
- build_out= $( mktemp )
84
+ prerequisites_log= " ${ARTIFACTS} /logs/e2e-prerequisites.log "
85
85
(
86
86
# Run prerequisites at low priority to avoid slowing down devstack tasks,
87
87
# which generally take much longer
@@ -101,18 +101,18 @@ build_out=$(mktemp)
101
101
retry 10 10 $( get_ssh_cmd) ${CONTROLLER_IP} -- sudo chown root:root capo-e2e-image.tar
102
102
retry 10 10 $( get_ssh_cmd) ${CONTROLLER_IP} -- sudo chmod u=rw,g=r,o=r capo-e2e-image.tar
103
103
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 &
105
105
build_pid=$!
106
106
107
107
# Build the devstack environment
108
108
hack/ci/create_devstack.sh
109
109
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
116
116
117
117
make test-e2e OPENSTACK_CLOUD_YAML_FILE=" $( pwd) /clouds.yaml"
118
118
test_status=" ${?} "
You can’t perform that action at this time.
0 commit comments