Skip to content
Snippets Groups Projects
Commit cf0258da authored by Florent Thiery's avatar Florent Thiery
Browse files

skip test if running locally

parent 2c37657a
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,9 @@ def check_celerity_connectivity(ip):
all_ok = True
mediaserver_ip = conf.get('NETWORK_IP')
worker_ip = conf.get('CELERITY_WORKER_IP')
if worker_ip != '127.0.1.1':
if worker_ip != '127.0.1.1' and worker_ip != mediaserver_ip:
if not check_ssh(worker_ip):
all_ok = False
else:
......@@ -72,5 +73,8 @@ if worker_ip != '127.0.1.1':
all_ok = False
if not run_tests(worker_ip):
all_ok = False
else:
print('Celerity IP not set or running locally, skipping test')
sys.exit(2)
sys.exit(int(not all_ok))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment