Skip to content

Commit 8a97c71

Browse files
committed
fix(xpytest): treat invalid password on Jenkins
1 parent 6e81b31 commit 8a97c71

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

clit/dev.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ def results(ctx, result_file, jenkins_url: Tuple[str, ...], dont_capture):
113113
click.echo(ctx.get_help())
114114
return
115115

116+
match = re.search(r"<title>(?P<error>.+Invalid password.+)</title>", contents)
117+
if match:
118+
click.secho(match.group("error"), fg="red")
119+
exit(1)
120+
116121
all_tests = set(TEST_NAMES_REGEX.findall(contents))
117122
expression = " or ".join(all_tests)
118123
if not dont_capture:

0 commit comments

Comments
 (0)