diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 17:54:31 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 17:54:31 +0200 |
| commit | 21d0648cd64cc24703d072ee070676ee9ae6ca30 (patch) | |
| tree | 4a8d59e1db0a740c1e011e185b5e5c85ce3179c7 | |
| parent | a489aaf4332df58886205cebeffb983819dfef96 (diff) | |
| download | ele-21d0648cd64cc24703d072ee070676ee9ae6ca30.tar.gz ele-21d0648cd64cc24703d072ee070676ee9ae6ca30.zip | |
Fix release test pipe race and fixture line endings
| -rw-r--r-- | .gitattributes | 1 | ||||
| -rw-r--r-- | tests/cli_tests.rs | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..96d8c49 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +/testdata/parse/*.txt text eol=lf diff --git a/tests/cli_tests.rs b/tests/cli_tests.rs index 76c9078..ca817ed 100644 --- a/tests/cli_tests.rs +++ b/tests/cli_tests.rs @@ -139,7 +139,11 @@ fn empty_filter_and_print_mode() { let output = run("", input, &[]); assert!(output.status.success()); assert_eq!(output.stdout, input.as_bytes()); - let output = run("", input, &["--print"]); + let output = Command::new(env!("CARGO_BIN_EXE_aif")) + .args(["--print", ""]) + .stdin(Stdio::null()) + .output() + .unwrap(); assert!(output.status.success()); assert!(output.stdout.is_empty()); |
