Skip to content

Commit

Permalink
fix(xpytest): treat invalid password on Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Mar 7, 2019
1 parent 6e81b31 commit 8a97c71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clit/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ def results(ctx, result_file, jenkins_url: Tuple[str, ...], dont_capture):
click.echo(ctx.get_help())
return

match = re.search(r"<title>(?P<error>.+Invalid password.+)</title>", contents)
if match:
click.secho(match.group("error"), fg="red")
exit(1)

all_tests = set(TEST_NAMES_REGEX.findall(contents))
expression = " or ".join(all_tests)
if not dont_capture:
Expand Down

0 comments on commit 8a97c71

Please sign in to comment.