This commit is contained in:
Bryan Helmkamp 2026-03-30 14:40:52 -04:00
parent 727c8ba1d3
commit e93c13b9db
No known key found for this signature in database
3 changed files with 21 additions and 5 deletions

View file

@ -30,7 +30,10 @@ fn help() {
}
fn launcher_path(context: &fabro_test::TestContext, run_id: &str) -> std::path::PathBuf {
context.storage_dir.join("launchers").join(format!("{run_id}.json"))
context
.storage_dir
.join("launchers")
.join(format!("{run_id}.json"))
}
#[test]
@ -252,7 +255,8 @@ digraph Test {
.args(["inspect", &run_id])
.assert()
.success();
let after: serde_json::Value = serde_json::from_slice(&inspect_after.get_output().stdout).unwrap();
let after: serde_json::Value =
serde_json::from_slice(&inspect_after.get_output().stdout).unwrap();
let after_summary = serde_json::json!({
"run_dir": after[0]["run_dir"],
"start_time": after[0]["start_record"]["start_time"],

View file

@ -106,7 +106,11 @@ digraph Smoke {
])
.assert()
.success();
context.command().args(["start", old_run_id]).assert().success();
context
.command()
.args(["start", old_run_id])
.assert()
.success();
context
.command()
.args(["wait", old_run_id])
@ -127,7 +131,11 @@ digraph Smoke {
.assert()
.success();
context.command().args(["start", "smoke"]).assert().success();
context
.command()
.args(["start", "smoke"])
.assert()
.success();
context
.command()
.args(["attach", new_run_id])

View file

@ -287,7 +287,11 @@ digraph FooWorkflow {
])
.assert()
.success();
context.command().args(["start", "alpha"]).assert().success();
context
.command()
.args(["start", "alpha"])
.assert()
.success();
context
.command()
.args(["attach", "alpha"])