Skip to content

Commit 7063919

Browse files
gabriele-0201pepyakin
authored andcommitted
xtask: update xzombienet to infer bin form path
1 parent 1c5103c commit 7063919

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

xtask/src/cli.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ pub mod zombienet {
109109

110110
#[derive(Debug, Args)]
111111
pub struct Params {
112-
/// If the test is executed in CI
112+
/// By default, binary paths are extracted using the `cargo metadata` command under the key `target_directory`.
113+
///
114+
/// To disable this behavior and manually add all binaries to the path, you need to specify this flag
113115
#[clap(long, default_value = "false")]
114-
pub ci: bool,
116+
pub no_infer_bin_path: bool,
115117

116118
#[clap(flatten)]
117119
pub build: BuildParams,

xtask/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ async fn test_procedure(params: test::Params) -> anyhow::Result<()> {
5555

5656
async fn zombienet(params: crate::cli::zombienet::Params) -> anyhow::Result<()> {
5757
let project_path = obtain_project_path()?;
58+
init_env(&project_path, params.no_infer_bin_path)?;
5859
build::build(&project_path, params.build).await?;
5960
let _zombienet = zombienet::Zombienet::try_new(&project_path, params.zombienet).await?;
6061
wait_interrupt().await??;

0 commit comments

Comments
 (0)