Compare lines iterator instead of full output
This avoids differences in line endings.
This commit is contained in:
parent
78372d6b41
commit
bec651ef47
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -79,10 +79,6 @@ jobs:
|
|||||||
git config --global user.email "user@example.com"
|
git config --global user.email "user@example.com"
|
||||||
git config --global user.name "User"
|
git config --global user.name "User"
|
||||||
./y.rs prepare
|
./y.rs prepare
|
||||||
|
|
||||||
|
|
||||||
- name: log expected output
|
|
||||||
run: cat -e regex/examples/regexdna-output.txt
|
|
||||||
|
|
||||||
- name: Build without unstable features
|
- name: Build without unstable features
|
||||||
env:
|
env:
|
||||||
|
@ -206,7 +206,8 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
|
|||||||
.join("\r\n");
|
.join("\r\n");
|
||||||
|
|
||||||
|
|
||||||
if output != expected {
|
let output_matches = expected.lines().eq(output.lines());
|
||||||
|
if !output_matches {
|
||||||
let res_path = PathBuf::from("res.txt");
|
let res_path = PathBuf::from("res.txt");
|
||||||
fs::write(&res_path, &output).unwrap();
|
fs::write(&res_path, &output).unwrap();
|
||||||
|
|
||||||
@ -457,7 +458,6 @@ impl TestRunner {
|
|||||||
full_cmd.push(arg.to_string());
|
full_cmd.push(arg.to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("full_CMD: {:?}", full_cmd);
|
|
||||||
let mut cmd_iter = full_cmd.into_iter();
|
let mut cmd_iter = full_cmd.into_iter();
|
||||||
let first = cmd_iter.next().unwrap();
|
let first = cmd_iter.next().unwrap();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user