Skip to content

Conversation

@estodi
Copy link
Contributor

@estodi estodi commented May 20, 2025

Added support for the quiet option.

Comment on lines 312 to 315
if !quiet {
let re = Regex::new("^ total +[1-9][0-9]*K$").unwrap();
assert!(re.is_match(last_line));
}
Copy link
Contributor

@cakebaker cakebaker May 20, 2025

Choose a reason for hiding this comment

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

You have to handle both the if and the else case. Otherwise, if quiet is true, you simply skip the assert without ensuring there is no "total" line. And thus the test passes even without the changes you made to pmap.rs and pmap_config.rs ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That’s true, thank you for pointing out!

Co-authored-by: Daniel Hofstetter <[email protected]>
@cakebaker cakebaker merged commit 9e562bb into uutils:main May 21, 2025
13 checks passed
@cakebaker
Copy link
Contributor

Thanks!

@codecov
Copy link

codecov bot commented May 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (22655db) to head (088a91b).
Report is 8 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #423   +/-   ##
===========================
===========================

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants