Skip to content

Commit 8b82fcd

Browse files
authored
Merge pull request #6204 from BenWiederhake/dev-dd-flaky-test-regex
dd: fix flaky test_null_stats
2 parents 11c9351 + 0375bc9 commit 8b82fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/by-util/test_dd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ fn test_null_stats() {
396396
.arg("if=null.txt")
397397
.run()
398398
.stderr_contains("0+0 records in\n0+0 records out\n0 bytes copied, ")
399-
.stderr_matches(&Regex::new(r"\d\.\d+(e-\d\d)? s, ").unwrap())
399+
.stderr_matches(&Regex::new(r"\d(\.\d+)?(e-\d\d)? s, ").unwrap())
400400
.stderr_contains("0.0 B/s")
401401
.success();
402402
}

0 commit comments

Comments
 (0)