Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Apr 12, 2019

  • Throw a ReframeError if an invalid regex is passed to one of the
    filtering functions.

  • Add corresponding unittests.

Fixes #730

* Throw a `ReframeError` if an invalid regex is passed to one of the
  filtering functions.

* Add corresponding unittests.
@teojgo teojgo added this to the ReFrame sprint 2019w15 milestone Apr 12, 2019
@teojgo teojgo requested a review from vkarak April 12, 2019 11:50
@teojgo teojgo self-assigned this Apr 12, 2019
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. I have just a minor comment.

@vkarak vkarak changed the title [bugfix] Handle invalid regexes used in cli to filter checks [bugfix] Do not crash when invalid regular expressions are passed to the test selection options Apr 15, 2019
@codecov-io
Copy link

Codecov Report

Merging #757 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #757      +/-   ##
==========================================
+ Coverage   91.51%   91.52%   +0.01%     
==========================================
  Files          76       76              
  Lines        9532     9548      +16     
==========================================
+ Hits         8723     8739      +16     
  Misses        809      809
Impacted Files Coverage Δ
reframe/frontend/check_filters.py 100% <100%> (ø) ⬆️
unittests/test_check_filters.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3753da9...d56b6be. Read the comment docs.

@vkarak vkarak merged commit f428382 into reframe-hpc:master Apr 15, 2019
@teojgo teojgo deleted the bugfix/invalid_regex_filter branch April 15, 2019 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Faulty regex causes frontend to crash with a traceback

3 participants