Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix paths for Boost Python check #332

Merged
merged 4 commits into from
Jun 15, 2018

Conversation

teojgo
Copy link
Contributor

@teojgo teojgo commented Jun 15, 2018

  • Update python3 test from python3.5 to python3.6.

  • Use the PYTHONPATH environment variable to extract the python dir.

* Update python3 test from python3.5 to python3.6.

* Use the PYTHONPATH environment variable to extract the python dir.
@codecov-io
Copy link

codecov-io commented Jun 15, 2018

Codecov Report

Merging #332 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #332      +/-   ##
==========================================
+ Coverage   91.26%   91.29%   +0.02%     
==========================================
  Files          67       67              
  Lines        8005     8005              
==========================================
+ Hits         7306     7308       +2     
+ Misses        699      697       -2
Impacted Files Coverage Δ
reframe/core/config.py 84.54% <0%> (+1.81%) ⬆️

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 f87f557...b652ed4. Read the comment docs.

@@ -38,4 +38,4 @@ def normalize(s):

def _get_checks(**kwargs):
return [BoostCrayGnuPythonTest('1.65.0', '17.08', '2.7', **kwargs),
BoostCrayGnuPythonTest('1.65.0', '17.08', '3.5', **kwargs)]
BoostCrayGnuPythonTest('1.65.0', '17.08', '3.6', **kwargs)]
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest converting the test to the new style.

@@ -1,20 +1,18 @@
import os
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed.

def normalize(s):
return s.replace('.', '_')

super().__init__('boost_%s_cray_gnu_%s_python_%s_check' % (
normalize(boost_version), normalize(cray_gnu_version),
normalize(python_version)), os.path.dirname(__file__), **kwargs)
normalize(python_version)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Set the name explicitly, not by passing it to the base class constructor. It may be deprecated in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

And btw I don't think that you need to set it at all. The default name should be fine.

@vkarak vkarak merged commit 8b48d8f into master Jun 15, 2018
@vkarak vkarak deleted the regression-test/boost_python_path_fix branch June 15, 2018 12:51
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.

3 participants