Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Nov 22, 2019

This is a standard replacement for the builtin print() function. The key difference is that it returns its arguments so that you can chain it inside sanity expressions for debugging. There is a also a little tweak in the default arguments binding, which is explained in the documentation.

Fixes #1030.

@vkarak vkarak added this to the ReFrame sprint 2019w46 milestone Nov 22, 2019
@vkarak vkarak requested review from teojgo and victorusu November 22, 2019 21:56
@vkarak vkarak self-assigned this Nov 22, 2019
@vkarak vkarak changed the title Add a print() sanity function [feat] Add a print() sanity function Nov 22, 2019
@codecov-io
Copy link

codecov-io commented Nov 22, 2019

Codecov Report

Merging #1062 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1062      +/-   ##
=========================================
+ Coverage   91.97%     92%   +0.02%     
=========================================
  Files          81      81              
  Lines       10982   11020      +38     
=========================================
+ Hits        10101   10139      +38     
  Misses        881     881
Impacted Files Coverage Δ
unittests/test_sanity_functions.py 100% <100%> (ø) ⬆️
reframe/utility/sanity.py 98.83% <100%> (+0.03%) ⬆️

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 091b3e3...d2ffb49. Read the comment docs.

@vkarak vkarak merged commit d0ee9ee into reframe-hpc:master Nov 25, 2019
@vkarak vkarak deleted the feat/sn-print branch November 25, 2019 09:44
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.

Add a print sanity function

3 participants