mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tiny-test-fw: show descriptive error when test case assignment fails:
Will give hint when any job failed to assign: ``` Please add the following jobs to .gitlab-ci.yml with specific tags: * Add job with: psram, ESP32_IDF, UT_T1_1 * Add job with: psram, ESP32_IDF, UT_T1_1 ```
This commit is contained in:
parent
3b24bc42d2
commit
a68b93d6f3
@ -45,7 +45,7 @@ import json
|
||||
|
||||
import yaml
|
||||
|
||||
from Utility import (CaseConfig, SearchCases, GitlabCIJob)
|
||||
from Utility import (CaseConfig, SearchCases, GitlabCIJob, console_log)
|
||||
|
||||
|
||||
class Group(object):
|
||||
@ -206,7 +206,11 @@ class AssignTest(object):
|
||||
break
|
||||
else:
|
||||
failed_to_assign.append(group)
|
||||
assert not failed_to_assign
|
||||
if failed_to_assign:
|
||||
console_log("Please add the following jobs to .gitlab-ci.yml with specific tags:", "R")
|
||||
for group in failed_to_assign:
|
||||
console_log("* Add job with: " + ",".join(group.ci_job_match_keys), "R")
|
||||
raise RuntimeError("Failed to assign test case to CI jobs")
|
||||
|
||||
def output_configs(self, output_path):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user