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

Permit test_slurm_commands to pass on MacOS #576

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

enrico-usai
Copy link
Contributor

@enrico-usai enrico-usai commented Oct 13, 2023

Description of changes

Test was failing on MacOS because by default it uses BSD grep, that does not accept -P option.

With this change, after installing GNU grep the test will pass. GNU grep can be easily installed from Homebrew: brew install grep.

$ grep --version
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD

$ brew install grep
$ ggrep --version
ggrep (GNU grep) 3.11
...

Tests

  • Executed test_slurm_commands on MacOS
  • Executed all unit tests for the node package and there are no failures.

Test was failing on MacOS because by default it uses BSD grep,
that does not accept `-P` option.

With this change, after installing GNU grep the test will pass.
GNU grep can be easily installed from Homebrew: `brew install grep`.

```
$ grep --version
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD

$ brew install grep
$ ggrep --version
ggrep (GNU grep) 3.11
...
```

Signed-off-by: Enrico Usai <[email protected]>
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (cc580cc) 89.93% compared to head (cfe8ca0) 89.93%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #576   +/-   ##
========================================
  Coverage    89.93%   89.93%           
========================================
  Files           16       16           
  Lines         2692     2692           
========================================
  Hits          2421     2421           
  Misses         271      271           
Flag Coverage Δ
unittests 89.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jdeamicis jdeamicis left a comment

Choose a reason for hiding this comment

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

I will regret this :D

@enrico-usai enrico-usai merged commit 659d56d into aws:develop Oct 13, 2023
12 checks passed
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