Skip to content

Add env filter regex option for test reports#959

Merged
boegel merged 9 commits intoeasybuilders:developfrom
wpoely86:testreport-regex
Jul 4, 2014
Merged

Add env filter regex option for test reports#959
boegel merged 9 commits intoeasybuilders:developfrom
wpoely86:testreport-regex

Conversation

@wpoely86
Copy link
Copy Markdown
Member

There is now a regex filter option to clean out the environment before
writting the test report.

There is now a regex filter option to clean out the environment before
writting the test report.
Comment thread easybuild/tools/testing.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

First of all, store the value returned by build_option('environment-filter-regex') outside the for loop

Second: how can this ever work? build_option('environment-filter-regex') will return a string, which doesn't have .search? You're not compiling the regex anywhere (which you can/should also do outside of the for loop).

The unit tests should also be extended to verify this functionality (since this must be broken pretty hard right now).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It works. Give it a spin.

@wpoely86
Copy link
Copy Markdown
Member Author

wpoely86 commented Jul 3, 2014

@boegel reworked a bit

only a unit test is missing. Will try to add.

wpoely86 and others added 5 commits July 3, 2014 17:32
rename --env-filter-regex to --test-report-env-filter, add unit test
correct unit test, also check whether use --test-report-env-filter is reported correctly
@hpcugentbot
Copy link
Copy Markdown

Merged build started.

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 4, 2014

Looking great, so going in, thanks @wpoely86!

@pescobar: this fixing a request you had to be able to filter the environment included in test reports

boegel added a commit that referenced this pull request Jul 4, 2014
Add env filter regex option for test reports
@boegel boegel merged commit 7117e60 into easybuilders:develop Jul 4, 2014
@wpoely86 wpoely86 deleted the testreport-regex branch July 4, 2014 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants