mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - ignore docker stack ps return code
This commit is contained in:
parent
ba6fddb56a
commit
3b73c50c32
2 changed files with 4 additions and 6 deletions
8
.github/workflows/dev.yml
vendored
8
.github/workflows/dev.yml
vendored
|
@ -371,10 +371,10 @@ jobs:
|
|||
run: cat /opt/.runner_env >> $GITHUB_ENV
|
||||
|
||||
# Run tests
|
||||
- name: Run Docker tests
|
||||
run: ./tests/main.py "docker"
|
||||
- name: Run Autoconf tests
|
||||
run: ./tests/main.py "autoconf"
|
||||
# - name: Run Docker tests
|
||||
# run: ./tests/main.py "docker"
|
||||
# - name: Run Autoconf tests
|
||||
# run: ./tests/main.py "autoconf"
|
||||
- name: Run Swarm tests
|
||||
run: ./tests/main.py "swarm"
|
||||
- name: Temp stop tests
|
||||
|
|
|
@ -40,8 +40,6 @@ class SwarmTest(Test) :
|
|||
healthy = False
|
||||
while i < 30 :
|
||||
proc = run('docker stack ps --no-trunc --format "{{ .CurrentState }}" bunkerweb | grep -v "Running"', cwd="/tmp/swarm", shell=True, capture_output=True)
|
||||
if proc.returncode != 0 :
|
||||
raise(Exception("docker stack ps failed (swarm stack)"))
|
||||
if "" == proc.stdout.decode() :
|
||||
healthy = True
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue