Skip to content
Permalink
Browse files

fix regexes

  • Loading branch information
3nids authored and nyalldawson committed Feb 8, 2021
1 parent e0c6b37 commit 6a9e85cf9e5dc2058e32176df3d5e133e37f37c7
Showing with 2 additions and 2 deletions.
  1. +2 −2 .ci/ctest2ci.py
@@ -108,7 +108,7 @@ def start_test_fold():
in_failure = True

if not in_failing_test and re.search('[0-9]+% tests passed, [0-9]+ tests failed out of', updated_line):
tests_failing = re.match(r'([0-9]+) tests failed', updated_line).group(1)
tests_failing = re.match(r'.* ([0-9]+) tests failed', updated_line).group(1)
updated_line += '\n::set-output name=TESTS_FAILING::{}'.format(tests_failing)
end_fold()

@@ -118,7 +118,7 @@ def start_test_fold():
if re.match('Submit files', updated_line):
start_fold('submit')
elif re.search('Test results submitted to', updated_line):
cdash_url = re.match(r'(http.*)$', updated_line).group(1)
cdash_url = re.match(r'.*(http.*)$', updated_line).group(1)
updated_line += '\n::set-output name=CDASH_URL::{}'.format(cdash_url)
end_fold()

0 comments on commit 6a9e85c

Please sign in to comment.