Skip to content

Commit c848ef0

Browse files
committed
oc: start-build waits only if --wait flag is set
1 parent 7a1bf39 commit c848ef0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/oc/cli/cmd/startbuild.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ func (o *StartBuildOptions) Run() error {
440440
}
441441
}
442442

443-
if o.Follow || o.WaitForComplete {
443+
if o.WaitForComplete {
444444
return WaitForBuildComplete(o.BuildClient.Builds(o.Namespace), newBuild.Name)
445445
}
446446

test/extended/gssapi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ os::cmd::expect_success "oc create -f '${test_data_location}/proxy'"
6262

6363
# kick off a build and wait for it to finish
6464
os::cmd::expect_success "oc set env dc/gssapiproxy-server HOST='${host}' REALM='${realm}' BACKEND='${backend}'"
65-
os::cmd::expect_success "oc start-build --from-dir='${test_data_location}/proxy' --follow gssapiproxy"
65+
os::cmd::expect_success "oc start-build --from-dir='${test_data_location}/proxy' --follow --wait gssapiproxy"
6666

6767
os_images=(fedora ubuntu)
6868

test/extended/ldap_groups.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ os::test::junit::declare_suite_start "extended/ldap-groups/setup"
5454
os::cmd::try_until_text "oc get imagestream openldap --template='${is_event_template}'" 'latest' "$((60*TIME_SEC))"
5555

5656
# kick off a build and wait for it to finish
57-
oc start-build openldap --follow
57+
oc start-build openldap --follow --wait
5858

5959
server_ready_template=( \
6060
"{{with \$items := .items}}" \

0 commit comments

Comments
 (0)