Harden CI tests

This commit is contained in:
cytopia 2022-01-27 17:30:00 +01:00
parent 4a9c0b6d9f
commit fe67bdf6bb
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
3 changed files with 39 additions and 3 deletions

View File

@ -199,8 +199,20 @@ jobs:
- name: "Test Container"
shell: bash
run: |
retry() {
for n in $(seq 5); do
echo "[${n}/5] ${*}";
if eval "${*}"; then
echo "[SUCC] ${n}/5";
return 0;
fi;
sleep 5;
echo "[FAIL] ${n}/5";
done;
return 1;
}
cd .tests/
make test-smoke-container
retry make test-smoke-container
if: success() || failure()
# ------------------------------------------------------------

View File

@ -213,8 +213,20 @@ jobs:
- name: "Test Container"
shell: bash
run: |
retry() {
for n in $(seq 5); do
echo "[${n}/5] ${*}";
if eval "${*}"; then
echo "[SUCC] ${n}/t";
return 0;
fi;
sleep 5;
echo "[FAIL] ${n}/5";
done;
return 1;
}
cd .tests/
make test-smoke-container
retry make test-smoke-container
if: success() || failure()
# ------------------------------------------------------------

View File

@ -289,8 +289,20 @@ jobs:
- name: "Test Container"
shell: bash
run: |
retry() {
for n in $(seq 5); do
echo "[${n}/5] ${*}";
if eval "${*}"; then
echo "[SUCC] ${n}/t";
return 0;
fi;
sleep 5;
echo "[FAIL] ${n}/5";
done;
return 1;
}
cd .tests/
make test-smoke-container
retry make test-smoke-container
if: success() || failure()
# ------------------------------------------------------------