Skip to content

Conversation

@ajocksch
Copy link
Contributor

@ajocksch ajocksch commented May 9, 2018

Fixes #247.

@ajocksch ajocksch self-assigned this May 9, 2018
@ajocksch ajocksch requested a review from vkarak May 9, 2018 10:20
result = sn.extractsingle(r'Result :\s+(?P<result>\d+\.?\d*)',
self.stdout, 'result', float)
self.sanity_patterns = sn.assert_reference(result, 1., -1e-5, 1e-5)
result = sn.findall(r'Result :\s+OK', self.stdout)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it looks a bit complicated

Copy link
Contributor

Choose a reason for hiding this comment

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

I fixed it. You could have simply done:

self.sanity_patterns = sn.assert_found(r'Result :\s+OK', self.stdout)

result = sn.extractsingle(r'Result :\s+(?P<result>\d+\.?\d*)',
self.stdout, 'result', float)
self.sanity_patterns = sn.assert_reference(result, 1., -1e-5, 1e-5)
result = sn.findall(r'Result :\s+OK', self.stdout)
Copy link
Contributor

Choose a reason for hiding this comment

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

I fixed it. You could have simply done:

self.sanity_patterns = sn.assert_found(r'Result :\s+OK', self.stdout)

@vkarak vkarak changed the title adapted gpu_direct_acc Adapt OpenACC+MPI GPU test to MCH's requirements May 12, 2018
@vkarak vkarak merged commit 316e6af into master May 12, 2018
@vkarak vkarak deleted the enhancement/gpu_direct_acc branch May 12, 2018 09:47
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