Skip to content

Commit

Permalink
distinct filenames for in_the_clear and mpc output
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Dec 5, 2024
1 parent 99a86a0 commit 5eec76e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ipa-core/tests/hybrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fn test_hybrid() {

// Gen inputs
let input_file = dir.path().join("ipa_inputs.txt");
let in_the_clear_output_file = dir.path().join("ipa_output_in_the_clear.json");
let output_file = dir.path().join("ipa_output.json");

let mut command = Command::new(TEST_RC_BIN);
Expand All @@ -50,7 +51,10 @@ fn test_hybrid() {
let mut command = Command::new(IN_THE_CLEAR_BIN);
command
.args(["--input-file".as_ref(), input_file.as_os_str()])
.args(["--output-file".as_ref(), output_file.as_os_str()])
.args([
"--output-file".as_ref(),
in_the_clear_output_file.as_os_str(),
])
.silent()
.stdin(Stdio::piped());
command.status().unwrap_status();
Expand Down Expand Up @@ -103,7 +107,7 @@ fn test_hybrid() {

// basic output checks - output should have the exact size as number of breakdowns
let output = serde_json::from_str::<HybridQueryResult>(
&std::fs::read_to_string(&output_file).expect("IPA results file exists"),
&std::fs::read_to_string(&output_file).expect("IPA results file should exist"),
)
.expect("IPA results file is valid JSON");

Expand Down

0 comments on commit 5eec76e

Please sign in to comment.