Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bec651e

Browse files
committed
Compare lines iterator instead of full output
This avoids differences in line endings.
1 parent 78372d6 commit bec651e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ jobs:
7979
git config --global user.email "user@example.com"
8080
git config --global user.name "User"
8181
./y.rs prepare
82-
83-
84-
- name: log expected output
85-
run: cat -e regex/examples/regexdna-output.txt
8682
8783
- name: Build without unstable features
8884
env:

build_system/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
206206
.join("\r\n");
207207

208208

209-
if output != expected {
209+
let output_matches = expected.lines().eq(output.lines());
210+
if !output_matches {
210211
let res_path = PathBuf::from("res.txt");
211212
fs::write(&res_path, &output).unwrap();
212213

@@ -457,7 +458,6 @@ impl TestRunner {
457458
full_cmd.push(arg.to_string());
458459
}
459460

460-
println!("full_CMD: {:?}", full_cmd);
461461
let mut cmd_iter = full_cmd.into_iter();
462462
let first = cmd_iter.next().unwrap();
463463

0 commit comments

Comments
 (0)