mirror of
https://github.com/status-im/status-react.git
synced 2025-02-18 05:48:12 +00:00
KeyError
This commit is contained in:
parent
b2695e0b24
commit
7991bbe958
@ -61,6 +61,8 @@ pipeline {
|
|||||||
def extraPytestOpts = ''
|
def extraPytestOpts = ''
|
||||||
if (params.TR_CASE_IDS != '') {
|
if (params.TR_CASE_IDS != '') {
|
||||||
extraPytestOpts = "--run_testrail_ids='${params.TR_CASE_IDS}'"
|
extraPytestOpts = "--run_testrail_ids='${params.TR_CASE_IDS}'"
|
||||||
|
} else {
|
||||||
|
extraPytestOpts = "-m \"${params.TEST_MARKERS}\""
|
||||||
}
|
}
|
||||||
|
|
||||||
withCredentials([
|
withCredentials([
|
||||||
@ -100,7 +102,6 @@ pipeline {
|
|||||||
--numprocesses 9 \
|
--numprocesses 9 \
|
||||||
--rerun_count=2 \
|
--rerun_count=2 \
|
||||||
--testrail_report=True \
|
--testrail_report=True \
|
||||||
-m \"${params.TEST_MARKERS}\" \
|
|
||||||
-k \"${params.KEYWORD_EXPRESSION}\" \
|
-k \"${params.KEYWORD_EXPRESSION}\" \
|
||||||
--apk=${params.APK_NAME} \
|
--apk=${params.APK_NAME} \
|
||||||
--build=PR-${params.PR_ID}-${utils.timestamp()} \
|
--build=PR-${params.PR_ID}-${utils.timestamp()} \
|
||||||
|
@ -185,7 +185,7 @@ class TestrailReport(BaseTestReport):
|
|||||||
results = self.post('add_results_for_cases/%s' % self.run_id, data={"results": data})
|
results = self.post('add_results_for_cases/%s' % self.run_id, data={"results": data})
|
||||||
try:
|
try:
|
||||||
results[0]
|
results[0]
|
||||||
except IndexError:
|
except (IndexError, KeyError):
|
||||||
print("Got TestRail error when adding results: \n%s" % results)
|
print("Got TestRail error when adding results: \n%s" % results)
|
||||||
|
|
||||||
for test in all_tests:
|
for test in all_tests:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user