fn succeeds_with_multistage_and_interpolation_unordered_subcommands() {
    let cfg = r#"
    env_files = ["src/.env"]
    [scripts]
    basic.subcommands.test.cmd = [
        "echo %SHORTGREETING %%",
        "echo %name && exit 1"
    ]
    basic.subcommands.test.args = ["name"]
    basic.subcommands.test.env_vars = ["SHORTGREETING"]
    basic.subcommands.other = "exit 1"
    "#;
    let output1 = expect_exit_code!(1, cfg, BONNIE_VERSION, ["basic", "test", "Name", "foo bar"]);
    assert_contains_ordered!(
        output1,
        ["sh, [\"-c\", \"echo Hello foo bar && echo Name && exit 1\"]"]
    );
    let output2 = expect_exit_code!(1, cfg, BONNIE_VERSION, ["basic", "other"]);
    assert_contains_ordered!(output2, ["sh, [\"-c\", \"exit 1\"]"]);
}
// This test will only work on Linux
This test will only work on Linux
This test will only work on Linux
fn succeeds_with_multistage_and_interpolation_unordered_subcommands() {
    let cfg = r#"
    env_files = ["src/.env"]
    [scripts]
    basic.subcommands.test.cmd = [
        "echo %SHORTGREETING %%",
        "echo %name && exit 1"
    ]
    basic.subcommands.test.args = ["name"]
    basic.subcommands.test.env_vars = ["SHORTGREETING"]
    basic.subcommands.other = "exit 1"
    "#;
    let output1 = expect_exit_code!(1, cfg, BONNIE_VERSION, ["basic", "test", "Name", "foo bar"]);
    assert_contains_ordered!(
        output1,
        ["sh, [\"-c\", \"echo Hello foo bar && echo Name && exit 1\"]"]
    );
    let output2 = expect_exit_code!(1, cfg, BONNIE_VERSION, ["basic", "other"]);
    assert_contains_ordered!(output2, ["sh, [\"-c\", \"exit 1\"]"]);
}
fn succeeds_with_multistage_and_interpolation_unordered_subcommands ( ) { let cfg = r#"
    env_files = ["src/.env"]
    [scripts]
    basic.subcommands.test.cmd = [
        "echo %SHORTGREETING %%",
        "echo %name && exit 1"
    ]
    basic.subcommands.test.args = ["name"]
    basic.subcommands.test.env_vars = ["SHORTGREETING"]
    basic.subcommands.other = "exit 1"
    "# ; let output1 = expect_exit_code ! ( 1 cfg BONNIE_VERSION [ " " " " " " " " ] ) ; assert_contains_ordered ! ( output1 [ " \" \" \" \" " ] ) ; let output2 = expect_exit_code ! ( 1 cfg BONNIE_VERSION [ " " " " ] ) ; assert_contains_ordered ! ( output2 [ " \" \" \" \" " ] ) ; }
This test will only work on Linux
This test will only work on Linux