Skip to content

Commit

Permalink
artifacts, Change output-dir command
Browse files Browse the repository at this point in the history
in ginkgo v2 there is a new way to configure the artifacts folder
This iliminates the need to copy the artifactson teardown.

Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Jun 21, 2022
1 parent 10e219d commit 0a09ee3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions automation/check-patch.e2e-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

teardown() {
make cluster-down
cp $(find . -name "*junit*.xml") $ARTIFACTS || true
}

main() {
Expand All @@ -17,7 +16,7 @@ main() {
make cluster-up
trap teardown EXIT SIGINT SIGTERM SIGSTOP
make cluster-sync
make E2E_TEST_ARGS="-ginkgo.noColor --junit-output=$ARTIFACTS/junit.functest.xml" functest
make E2E_TEST_ARGS="-ginkgo.noColor --output-dir=$ARTIFACTS --junit-report=junit.functest.xml" functest
}

[[ "${BASH_SOURCE[0]}" == "$0" ]] && main "$@"
6 changes: 0 additions & 6 deletions automation/check-patch.unit-test.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/bin/bash -e

teardown() {
cp $(find . -name "*junit*.xml") $ARTIFACTS || true
}

main() {
source automation/check-patch.setup.sh
cd ${TMP_PROJECT_PATH}

trap teardown EXIT SIGINT SIGTERM SIGSTOP

make all
make check
make test
Expand Down

0 comments on commit 0a09ee3

Please sign in to comment.