Skip to content

Commit 127d956

Browse files
committed
fix e2e tests
Signed-off-by: Patrik Cyvoct <[email protected]>
1 parent 54abd94 commit 127d956

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ build-tar: ./bin/node-problem-detector ./bin/log-counter ./test/bin/problem-make
200200
sha1sum $(TARBALL)
201201
md5sum $(TARBALL)
202202

203-
build-tar-all:
203+
build-tar-all: clean
204204
@for arch in $(ALL_ARCH); do $(MAKE) ARCH=$${arch} build-in-docker; done
205-
cp bin/node-problem-detector-amd64 bin/node-problem-detector
206-
cp bin/log-counter-amd64 bin/log-counter
207-
tar -zcvf $(TARBALL-ALL) bin/ config/ test/e2e-install.sh
205+
@for arch in $(ALL_ARCH); do cp bin/node-problem-detector-$(ARCH) bin/node-problem-detector; done
206+
@for arch in $(ALL_ARCH); do cp bin/log-counter-$(ARCH) bin/log-counter; done
207+
tar -zcvf $(TARBALL-ALL) bin/ config/ test/e2e-install.sh
208208
sha1sum $(TARBALL-ALL)
209209
md5sum $(TARBALL-ALL)
210210

@@ -215,7 +215,7 @@ build: build-container build-tar
215215
docker-builder:
216216
docker build -t npd-builder ./builder
217217

218-
build-in-docker: clean docker-builder
218+
build-in-docker: docker-builder
219219
docker run \
220220
-e CC=$(CC) -e GOARM=$(GOARM) -e GOARCH=$(ARCH) -e GOCACHE=/go/.cache/go-build \
221221
-u $(shell id -u ${USER}):$(shell id -g ${USER}) \

test/e2e-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function install-npd() {
5555
mount -o remount,exec "${BIN_DIR}"
5656

5757
echo "Installing NPD binary."
58-
cp "${workdir}"/bin/node-problem-detector "${BIN_DIR}"
58+
cp "${workdir}"/bin/node-problem-detector-amd64 "${BIN_DIR}"/node-problem-detector
5959

6060
echo "Installing log-counter binary."
61-
cp "${workdir}"/bin/log-counter "${BIN_DIR}"
61+
cp "${workdir}"/bin/log-counter-amd64 "${BIN_DIR}"/log-counter
6262

6363
echo "Installing NPD configurations."
6464
mkdir -p "${CONFIG_DIR}"
@@ -97,4 +97,4 @@ done
9797
shift "$((OPTIND-1))"
9898

9999

100-
main "${@}"
100+
main "${@}"

0 commit comments

Comments
 (0)