Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Jul 18, 2019

I have also adapted the OpenFOAM tests to the new syntax, since they were the only ones remaining to be ported. @kraushm Can you have a look into them?

This PR renders unnecessary the call to super().__init__() inside the user test's constructor.

Vasileios Karakasis added 2 commits July 18, 2019 00:22
@vkarak vkarak changed the title [feat] Remove support of the very old test syntax using _get_checks() [feat] Remove support for the very old test syntax using _get_checks() Jul 18, 2019
Vasileios Karakasis added 2 commits July 18, 2019 14:35
- Files were not staged in the previous commit
@pep8speaks
Copy link

pep8speaks commented Jul 18, 2019

Hello @vkarak, Thank you for updating!

Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide

Comment last updated at 2019-07-19 15:09:57 UTC

@vkarak
Copy link
Contributor Author

vkarak commented Jul 18, 2019

@victorusu @teojgo This PR is a requirement for the stuff I'm doing with the delayed initialization of tests.

@vkarak vkarak changed the title [feat] Remove support for the very old test syntax using _get_checks() [wip] [feat] Remove support for the very old test syntax using _get_checks() Jul 18, 2019
@vkarak
Copy link
Contributor Author

vkarak commented Jul 18, 2019

I am converting it to wip, because I still need to remove the ability to pass arguments to the RegressionTest's __init__(), which was only meaningful with the old syntax.

- Also do not require subclasses to call `super().__init__()` for initializing
  properly themselves.
@vkarak vkarak changed the title [wip] [feat] Remove support for the very old test syntax using _get_checks() [feat] Remove support for the very old test syntax using _get_checks() Jul 19, 2019
@vkarak
Copy link
Contributor Author

vkarak commented Jul 19, 2019

With this PR it will no more be necessary to call super().__init__() inside the user tests. Should I change all the tutorial example?

@teojgo
Copy link
Contributor

teojgo commented Jul 19, 2019

@vkarak yes change them and remove super().__init__() from the OpenFoam tests included here.

Vasileios Karakasis added 2 commits July 19, 2019 15:12
@codecov-io
Copy link

codecov-io commented Jul 19, 2019

Codecov Report

Merging #876 into master will increase coverage by 0.02%.
The diff coverage is 98.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #876      +/-   ##
==========================================
+ Coverage   91.66%   91.69%   +0.02%     
==========================================
  Files          80       78       -2     
  Lines       10318    10282      -36     
==========================================
- Hits         9458     9428      -30     
+ Misses        860      854       -6
Impacted Files Coverage Δ
...s/resources/checks_unlisted/dependencies/normal.py 100% <ø> (ø) ⬆️
unittests/test_loader.py 100% <ø> (ø) ⬆️
unittests/resources/checks/hellocheck.py 100% <ø> (ø) ⬆️
unittests/resources/checks/frontend_checks.py 99.14% <ø> (-0.01%) ⬇️
unittests/test_utility.py 99.2% <ø> (-0.01%) ⬇️
unittests/resources/checks_unlisted/good.py 87.87% <ø> (-0.7%) ⬇️
...ittests/resources/checks_unlisted/kbd_interrupt.py 100% <100%> (ø) ⬆️
reframe/core/pipeline.py 93.52% <100%> (+0.01%) ⬆️
unittests/resources/checks/bad/invalid_check.py 100% <100%> (ø) ⬆️
unittests/test_pipeline.py 97.44% <100%> (+0.04%) ⬆️
... and 4 more

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 fd49879...3c60639. Read the comment docs.

@vkarak vkarak merged commit f6d633d into reframe-hpc:master Jul 19, 2019
@vkarak vkarak deleted the feat/remove-getchecks branch July 19, 2019 16: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.

4 participants