Skip to content

Commit

Permalink
(DO NOT MERGE) Trying to figure out why this is unhappy in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Jun 21, 2024
1 parent 1b9c8f9 commit 685ee26
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use std::io::{self, BufReader};
use std::iter;
use std::path::{Path, PathBuf};
use std::process::{Child, Command, ExitStatus, Output, Stdio};
use std::str::{self, FromStr};
use std::str;
use std::sync::Arc;

use anyhow::Context;
Expand Down Expand Up @@ -3941,14 +3941,7 @@ impl<'test> TestCx<'test> {
}

if self.props.check_run_stdout_is_json_lines {
for (line, n) in proc_res.stdout.lines().zip(1..) {
if serde_json::Value::from_str(line).is_err() {
self.fatal_proc_rec(
&format!("invalid JSON on line {n} of stdout: {line:?}"),
&proc_res,
);
}
}
self.fatal_proc_rec("@@ pretending that run-stdout is not json @@", &proc_res);
}

if !self.props.error_patterns.is_empty() || !self.props.regex_error_patterns.is_empty()
Expand Down

0 comments on commit 685ee26

Please sign in to comment.