Skip to content

Commit

Permalink
Move sonobuoy conformance tests into tests directory
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Feb 23, 2024
1 parent 789e9ff commit 41a8c42
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/docker/test-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ test-run-sonobuoy() {
fi

cleanup-test-env
. ./scripts/test-setup-sonobuoy$suffix
. ./tests/docker/test-setup-sonobuoy$suffix

if [ "$1" = "parallel" ] || [ "$2" = "parallel" ]; then
label=PARALLEL \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test-post-hook() {
fi
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR/sonobuoy/plugins/e2e/results/global/e2e.log")
# Ignore sonobuoy failures if only these flaky tests have failed
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
flakyFails=$( grep -scF -f ./tests/docker/flaky-tests <<< "$failures" )
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
[ "$totalFails" -le "$flakyFails" ]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. ./scripts/test-setup-sonobuoy
. ./tests/docker/test-setup-sonobuoy

export NUM_SERVERS=1
export NUM_AGENTS=1
Expand All @@ -20,7 +20,7 @@ test-post-hook() {
fi
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR/sonobuoy/plugins/e2e/results/global/e2e.log")
# Ignore sonobuoy failures if only these flaky tests have failed
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
flakyFails=$( grep -scF -f ./tests/docker/flaky-tests <<< "$failures" )
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
[ "$totalFails" -le "$flakyFails" ]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. ./scripts/test-setup-sonobuoy
. ./tests/docker/test-setup-sonobuoy

# ---

Expand Down Expand Up @@ -47,7 +47,7 @@ test-post-hook() {
fi
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR/sonobuoy/plugins/e2e/results/global/e2e.log")
# Ignore sonobuoy failures if only these flaky tests have failed
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
flakyFails=$( grep -scF -f ./tests/docker/flaky-tests <<< "$failures" )
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
[ "$totalFails" -le "$flakyFails" ]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

. ./scripts/test-setup-sonobuoy
. ./tests/docker/test-setup-sonobuoy

# ---

Expand Down Expand Up @@ -47,7 +47,7 @@ test-post-hook() {
fi
local failures=$(awk '/^Summarizing .* Failures?:$/,0' "$TEST_DIR/sonobuoy/plugins/e2e/results/global/e2e.log")
# Ignore sonobuoy failures if only these flaky tests have failed
flakyFails=$( grep -scF -f ./scripts/flaky-tests <<< "$failures" )
flakyFails=$( grep -scF -f ./tests/docker/flaky-tests <<< "$failures" )
totalFails=$( grep -scF -e "[Fail]" <<< "$failures" )
[ "$totalFails" -le "$flakyFails" ]
}
Expand Down

0 comments on commit 41a8c42

Please sign in to comment.