Skip to content

Commit 461cbc1

Browse files
committed
Address some of the comments in the PR
1 parent 9f283d9 commit 461cbc1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

toolshed/find_skipped_tests.py

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
ANSI_ESCAPE = re.compile(r"\x1B\[[0-9;]*[A-Za-z]")
3838
PYTEST_NODE_ID = re.compile(r"tests/\S+\.py::\S+")
39-
PYTEST_TEST_OUTCOME = re.compile(r"(tests/\S+\.py::\S+)\s+(PASSED|FAILED|ERROR|SKIPPED|XFAIL|XPASS)\b")
39+
PYTEST_TEST_OUTCOME = re.compile(r"(tests/\S+\.py::\S+(\[.*?\])?)\s+(PASSED|FAILED|ERROR|SKIPPED|XFAIL|XPASS)\b")
4040

4141
# GHA log format markers used to identify which test suite is active.
4242
# `gh api` logs: ##[group]<step-name> opens a section, ##[endgroup] closes it.
@@ -113,6 +113,7 @@ def find_latest_run(repo: str, workflow_file: str, params: str) -> WorkflowRun |
113113
)
114114
text = result.stdout.strip()
115115
if result.returncode != 0 or not text or text == "null":
116+
print("Error finding latest run:", result.stderr.strip(), file=sys.stderr)
116117
return None
117118
data = json.loads(text)
118119
return WorkflowRun(

0 commit comments

Comments
 (0)