8000 df: fix rounding issue in test by cakebaker · Pull Request #5532 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

df: fix rounding issue in test #5532

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

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/by-util/test_df.rs
5707
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,11 @@ fn test_total_label_in_correct_column() {
#[test]
fn test_use_percentage() {
let output = new_ucmd!()
.args(&["--total", "--output=used,avail,pcent"])
// set block size = 1, otherwise the returned values for
// "used" and "avail" will be rounded. And using them to calculate
// the "percentage" values might lead to a mismatch with the returned
// "percentage" values.
.args(&["--total", "--output=used,avail,pcent", "--block-size=1"])
.succeeds()
.stdout_move_str();

Expand Down
0