Skip to content

Conversation

@teojgo
Copy link
Contributor

@teojgo teojgo commented Jul 27, 2021

Fixes #2069

@teojgo teojgo added this to the ReFrame Sprint 21.07.1 milestone Jul 27, 2021
@teojgo teojgo requested review from jjotero and vkarak July 27, 2021 16:25
@teojgo teojgo self-assigned this Jul 27, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2021

Codecov Report

Merging #2100 (1db508d) into master (7afe689) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2100   +/-   ##
=======================================
  Coverage   86.30%   86.30%           
=======================================
  Files          53       53           
  Lines        9352     9352           
=======================================
  Hits         8071     8071           
  Misses       1281     1281           

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 7afe689...1db508d. Read the comment docs.

Copy link
Contributor

@jjotero jjotero left a comment

Choose a reason for hiding this comment

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

Since this code shows up twice in here, would it make sense to make this a function that takes anstdout and returns the sleep_pid?

Copy link
Contributor

@jjotero jjotero left a comment

Choose a reason for hiding this comment

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

Just a very minor comment

Copy link
Contributor

@jjotero jjotero left a comment

Choose a reason for hiding this comment

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

Looks good except for that get_sleep_pid function that is defined twice.

Copy link
Contributor

@jjotero jjotero left a comment

Choose a reason for hiding this comment

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

lgtm

- Move function definition closer to its use
- Improve names
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

I just did a couple of minor improvements.

@vkarak vkarak changed the title [bugfix] Make test_cancel_(with_grace|term_ignore) more robust [bugfix] Make test_cancel_(with_grace|term_ignore) unit tests more robust Jul 30, 2021
@vkarak vkarak merged commit 8a9ceed into reframe-hpc:master Aug 1, 2021
@teojgo teojgo deleted the bugfix/cancel_ignore_more_robust branch August 13, 2021 07:24
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.

Make test_cancel_term_ignore unit test more robust

4 participants