Skip to content
Permalink
Browse files

fix regexes

  • Loading branch information
3nids authored and nyalldawson committed Feb 5, 2021
1 parent 37cfcaf commit 59a460e1adedff26e7e04a478da57b6c24a966a3
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 59a460e

Please sign in to comment.