add testbindings Makefile target

use this target in the CI script to make sure it uses the correct gingko

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2022-12-20 15:59:43 +01:00
parent 5ad72a2349
commit 3db8ef37d8
2 changed files with 6 additions and 5 deletions

View File

@ -571,6 +571,10 @@ ginkgo:
ginkgo-remote:
$(MAKE) ginkgo-run TAGS="$(REMOTETAGS) remote_testing" HACK=
.PHONY: testbindings
testbindings: .install.ginkgo
ACK_GINKGO_RC=true $(GINKGO) -v $(TESTFLAGS) -tags "$(TAGS) remote" $(GINKGOTIMEOUT) -progress -trace -noColor -debug -timeout 30m -v -r ./pkg/bindings/test
.PHONY: localintegration
localintegration: test-binaries ginkgo

View File

@ -101,11 +101,8 @@ function _run_bindings() {
gitcommit_magic="/define.gitCommit=${GIT_COMMIT}"
fi
# Subshell needed so logformatter will write output in cwd; if it runs in
# the subdir, .cirrus.yml will not find the html'ized log
(cd pkg/bindings/test && \
echo "$gitcommit_magic" && \
ginkgo -progress -trace -noColor -debug -timeout 30m -r -v) |& logformatter
(echo "$gitcommit_magic" && \
make testbindings) |& logformatter
}
function _run_docker-py() {