mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-11 22:53:00 +00:00
fmt
This commit is contained in:
parent
727c8ba1d3
commit
e93c13b9db
3 changed files with 21 additions and 5 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue