|
|
|
@ -189,8 +189,15 @@ sonobuoy-test() {
|
|
|
|
|
return 0 |
|
|
|
|
fi |
|
|
|
|
echo 'Starting sonobuoy tests' |
|
|
|
|
local VERSION_CONFORMANCE=$(sed -e 's/[-+].*$//g' <<< "$VERSION_K8S") |
|
|
|
|
|
|
|
|
|
sonobuoy run \ |
|
|
|
|
--config=scripts/sonobuoy-config.json \ |
|
|
|
|
--plugin-env=e2e.E2E_USE_GO_RUNNER=true \ |
|
|
|
|
--kube-conformance-image-version=${VERSION_CONFORMANCE} \ |
|
|
|
|
--wait=30 \ |
|
|
|
|
$@ & |
|
|
|
|
|
|
|
|
|
sonobuoy run --config=scripts/sonobuoy-config.json --plugin-env=e2e.E2E_USE_GO_RUNNER=true --wait=30 $@ & |
|
|
|
|
local sonobuoyPID=$! |
|
|
|
|
local code=0 |
|
|
|
|
time wait $sonobuoyPID || code=$? |
|
|
|
@ -510,6 +517,9 @@ pid-cleanup() {
|
|
|
|
|
else |
|
|
|
|
printf "\033[31m$failCount tests failed.\033[m\n" |
|
|
|
|
fi |
|
|
|
|
if [ "$DRONE_BUILD_EVENT" = 'tag' ]; then |
|
|
|
|
code=0 |
|
|
|
|
fi |
|
|
|
|
echo |
|
|
|
|
exit $code |
|
|
|
|
} |
|
|
|
@ -524,8 +534,10 @@ wait-pids() {
|
|
|
|
|
for pid in "${pids[@]}"; do |
|
|
|
|
wait $pid || code=$? |
|
|
|
|
done |
|
|
|
|
[ $code -eq 0 ] |
|
|
|
|
pid-cleanup |
|
|
|
|
if [ "$DRONE_BUILD_EVENT" = 'tag' ]; then |
|
|
|
|
code=0 |
|
|
|
|
fi |
|
|
|
|
exit $code |
|
|
|
|
} |
|
|
|
|
export -f wait-pids |
|
|
|
|