storkit: merge 361_story_remove_deprecated_manual_qa_front_matter_field
This commit is contained in:
@@ -254,9 +254,10 @@ mod tests {
|
||||
fn run_project_tests_uses_script_test_when_present_and_passes() {
|
||||
use std::fs;
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
use tempfile::tempdir;
|
||||
|
||||
let tmp = tempdir().unwrap();
|
||||
let tmp = tempfile::Builder::new()
|
||||
.tempdir_in(env!("CARGO_MANIFEST_DIR"))
|
||||
.unwrap();
|
||||
let path = tmp.path();
|
||||
let script_dir = path.join("script");
|
||||
fs::create_dir_all(&script_dir).unwrap();
|
||||
@@ -276,9 +277,10 @@ mod tests {
|
||||
fn run_project_tests_reports_failure_when_script_test_exits_nonzero() {
|
||||
use std::fs;
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
use tempfile::tempdir;
|
||||
|
||||
let tmp = tempdir().unwrap();
|
||||
let tmp = tempfile::Builder::new()
|
||||
.tempdir_in(env!("CARGO_MANIFEST_DIR"))
|
||||
.unwrap();
|
||||
let path = tmp.path();
|
||||
let script_dir = path.join("script");
|
||||
fs::create_dir_all(&script_dir).unwrap();
|
||||
@@ -313,9 +315,10 @@ mod tests {
|
||||
fn coverage_gate_passes_when_script_exits_zero() {
|
||||
use std::fs;
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
use tempfile::tempdir;
|
||||
|
||||
let tmp = tempdir().unwrap();
|
||||
let tmp = tempfile::Builder::new()
|
||||
.tempdir_in(env!("CARGO_MANIFEST_DIR"))
|
||||
.unwrap();
|
||||
let path = tmp.path();
|
||||
let script_dir = path.join("script");
|
||||
fs::create_dir_all(&script_dir).unwrap();
|
||||
@@ -342,9 +345,10 @@ mod tests {
|
||||
fn coverage_gate_fails_when_script_exits_nonzero() {
|
||||
use std::fs;
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
use tempfile::tempdir;
|
||||
|
||||
let tmp = tempdir().unwrap();
|
||||
let tmp = tempfile::Builder::new()
|
||||
.tempdir_in(env!("CARGO_MANIFEST_DIR"))
|
||||
.unwrap();
|
||||
let path = tmp.path();
|
||||
let script_dir = path.join("script");
|
||||
fs::create_dir_all(&script_dir).unwrap();
|
||||
|
||||
@@ -1187,14 +1187,7 @@ mod tests {
|
||||
|
||||
/// Returns true if a process with the given PID is currently running.
|
||||
fn process_is_running(pid: u32) -> bool {
|
||||
std::process::Command::new("ps")
|
||||
.arg("-p")
|
||||
.arg(pid.to_string())
|
||||
.stdout(std::process::Stdio::null())
|
||||
.stderr(std::process::Stdio::null())
|
||||
.status()
|
||||
.map(|s| s.success())
|
||||
.unwrap_or(false)
|
||||
std::path::Path::new(&format!("/proc/{pid}")).exists()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user