Skip to content

Commit

Permalink
allow running of single integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Hsu <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
  • Loading branch information
andrewhsu authored and Tibor Vass committed Jul 16, 2019
1 parent 618be06 commit c222c5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions hack/make/.integration-test-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ integration_api_dirs=${TEST_INTEGRATION_DIR:-"$(
grep -vE '(^./integration($|/internal)|/testdata)')"}

run_test_integration() {
[[ "$TESTFLAGS" != *-check.f* ]] && run_test_integration_suites
run_test_integration_legacy_suites
if [[ "$TESTFLAGS" != *-check.f* ]]; then
run_test_integration_suites
fi
if [[ "$TESTFLAGS" != *-test.run* ]]; then
run_test_integration_legacy_suites
fi
}

run_test_integration_suites() {
Expand Down
8 changes: 6 additions & 2 deletions hack/test/e2e-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ integration_api_dirs=${TEST_INTEGRATION_DIR:-"$(
grep -vE '(^/tests/integration($|/internal)|/testdata)')"}

run_test_integration() {
[[ "$TESTFLAGS" != *-check.f* ]] && run_test_integration_suites
run_test_integration_legacy_suites
if [[ "$TESTFLAGS" != *-check.f* ]]; then
run_test_integration_suites
fi
if [[ "$TESTFLAGS" != *-test.run* ]]; then
run_test_integration_legacy_suites
fi
}

run_test_integration_suites() {
Expand Down

0 comments on commit c222c5a

Please sign in to comment.