mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Merge pull request #954 from erikwilson/enable-arm-tests
Enable tests for arm
This commit is contained in:
commit
d2756a76c1
@ -212,6 +212,14 @@ steps:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: sonobuoy-e2e-tests
|
||||
image: rancher/dapper:v0.4.2
|
||||
commands:
|
||||
- dapper -f Dockerfile.sonobuoy.dapper
|
||||
volumes:
|
||||
- name: docker
|
||||
path: /var/run/docker.sock
|
||||
|
||||
volumes:
|
||||
- name: docker
|
||||
host:
|
||||
|
@ -195,5 +195,10 @@ echo "Started ${K3S_AGENT}"
|
||||
timeout --foreground 1m bash -c wait-for-nodes
|
||||
timeout --foreground 1m bash -c wait-for-services
|
||||
|
||||
if [ "$ARCH" = "arm" ]; then
|
||||
echo "Aborting sonobuoy tests, images not available for $ARCH"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Starting sonobuoy tests"
|
||||
sonobuoy-test "${@}"
|
||||
|
@ -17,6 +17,28 @@ mkdir -p ${OUTPUT}
|
||||
pids=()
|
||||
output=()
|
||||
|
||||
show-logs() {
|
||||
for pid in "${pids[@]}"; do
|
||||
logdir=$(pwd)/logs/${pid}
|
||||
if [ ! -d $logdir ]; then
|
||||
continue
|
||||
fi
|
||||
echo
|
||||
echo "#- Begin: logs for sonobuoy run pid ${pid}"
|
||||
for log in $(pwd)/logs/${pid}/*; do
|
||||
if [ -f ${log} ]; then
|
||||
echo
|
||||
echo "#- Start: ${log}"
|
||||
cat ${log}
|
||||
echo "#- End: ${log}"
|
||||
echo
|
||||
fi
|
||||
done
|
||||
echo "#- Finish: logs for sonobuoy run pid ${pid}"
|
||||
echo
|
||||
done
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
exit_status=$?
|
||||
set +e
|
||||
@ -29,6 +51,7 @@ cleanup() {
|
||||
echo "passed"
|
||||
else
|
||||
echo "failed"
|
||||
show-logs
|
||||
fi
|
||||
exit ${exit_status}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user