Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ GO_BUILD_FLAGS :=-tags 'include_gcs include_oss containers_image_openpgp gssapi
GO_TEST_FLAGS=$(GO_BUILD_FLAGS)
GO_TEST_PACKAGES=./cmd/... ./pkg/...

all: generate-config microshift etcd
# Enable CGO when building microshift binary for access to local libraries.
# Use an environment variable to allow CI to disable when cross-compiling.
export CGO_ENABLED ?= 1

# target "build:" defined in vendor/github.com/openshift/build-machinery-go/make/targets/golang/build.mk
# Disable CGO when building microshift binary
build: export CGO_ENABLED=0
all: generate-config microshift etcd

microshift: build

Expand Down
4 changes: 1 addition & 3 deletions e2e/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,10 @@ run_test() {

konfig=$(microshift_get_konfig)
trap 'rm -f "${konfig}"' RETURN

chmod +x "${SCRIPT_DIR}/tests/${test}"

test_start=$(date +%s)
set +e
KUBECONFIG="${konfig}" "${SCRIPT_DIR}/tests/${test}" &>"${output}/0010-test.log"
KUBECONFIG="${konfig}" bash "${SCRIPT_DIR}/tests/${test}" &>"${output}/0010-test.log"
res=$?
set -e
test_dur=$(($(date +%s) - test_start))
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/0050-pvc-resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ oc wait --for=condition=Ready --timeout=120s pod/test-pod

RESIZE_TO=2Gi
TIME_OUT=3m
oc patch pvc my-pvc -p '{"spec":{"resources":{"requests":{"storage":"'${RESIZE_TO}'"}}}}'
oc wait --timeout ${TIME_OUT} --for=jsonpath="{.spec.resources.requests.storage}"=${RESIZE_TO} pvc/my-pvc
oc patch pvc test-claim -p '{"spec":{"resources":{"requests":{"storage":"'${RESIZE_TO}'"}}}}'
oc wait --timeout ${TIME_OUT} --for=jsonpath="{.spec.resources.requests.storage}"=${RESIZE_TO} pvc/test-claim
6 changes: 3 additions & 3 deletions etcd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ include ./vendor/github.com/openshift/build-machinery-go/make/targets/openshift/
OUTPUT_DIR := ../_output
GO_BUILD_BINDIR := $(OUTPUT_DIR)/bin

all: export CGO_ENABLED=0

build: export CGO_ENABLED=0
# Enable CGO when building microshift binary for access to local libraries.
# Use an environment variable to allow CI to disable when cross-compiling.
export CGO_ENABLED ?= 1

vendor:
go mod vendor
Expand Down