fix pytest internal error if no response from saucelabs
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
bb4264ac70
commit
c91e51459f
|
@ -2,7 +2,7 @@ import requests
|
|||
import pytest
|
||||
import re
|
||||
from _pytest.runner import runtestprotocol
|
||||
|
||||
from http.client import RemoteDisconnected
|
||||
from support.device_stats_db import DeviceStatsDB
|
||||
from support.test_rerun import should_rerun_test
|
||||
from tests import test_suite_data, appium_container
|
||||
|
@ -236,7 +236,10 @@ def pytest_runtest_makereport(item, call):
|
|||
|
||||
def update_sauce_jobs(test_name, job_ids, passed):
|
||||
for job_id in job_ids.keys():
|
||||
try:
|
||||
sauce.jobs.update_job(job_id, name=test_name, passed=passed)
|
||||
except RemoteDisconnected:
|
||||
pass
|
||||
|
||||
|
||||
def get_testrail_case_id(obj):
|
||||
|
|
Loading…
Reference in New Issue