e2e: kkkk

This commit is contained in:
Churikova Tetiana 2022-04-29 09:49:33 +02:00
parent 0fe6cd4125
commit 43fccb3cdf
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
3 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,7 @@ pipeline {
sh """
python3 -m pytest \
--numprocesses 9 \
--dist loadgroup \
--rerun_count=2 \
--testrail_report=True \
-m testrail_id \

View File

@ -100,6 +100,7 @@ pipeline {
--numprocesses 9 \
--rerun_count=2 \
--testrail_report=True \
--dist loadgroup \
-m \"${params.TEST_MARKERS}\" \
-k \"${params.KEYWORD_EXPRESSION}\" \
--apk=${params.APK_NAME} \

View File

@ -292,6 +292,8 @@ def pytest_runtest_protocol(item, nextitem):
for i in range(rerun_count):
reports = runtestprotocol(item, nextitem=nextitem)
for report in reports:
# is_in_group = [i for i in item.iter_markers(name='xdist_group')]
# if report.failed and should_rerun_test(report.longreprtext) and not is_in_group:
if report.failed and should_rerun_test(report.longreprtext):
break # rerun
else: