Merge pull request #6204 from BenWiederhake/dev-dd-flaky-test-regex

dd: fix flaky test_null_stats
This commit is contained in:
Daniel Hofstetter 2024-04-10 16:44:26 +02:00 committed by GitHub
commit 8b82fcd134
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,7 +396,7 @@ fn test_null_stats() {
.arg("if=null.txt")
.run()
.stderr_contains("0+0 records in\n0+0 records out\n0 bytes copied, ")
.stderr_matches(&Regex::new(r"\d\.\d+(e-\d\d)? s, ").unwrap())
.stderr_matches(&Regex::new(r"\d(\.\d+)?(e-\d\d)? s, ").unwrap())
.stderr_contains("0.0 B/s")
.success();
}