Skip to content

Commit

Permalink
fix mpm intergration_test (#3880)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Mar 24, 2023
1 parent 5deed99 commit 3190084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vm/move-package-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ pub fn run_integration_test(move_arg: Move, cmd: IntegrationTestCommand) -> Resu
return starcoin_transactional_test_harness::print_help(cmd.task_name);
};
let rerooted_path = {
let path = &move_arg.package_path;
let path = match move_arg.package_path {
Some(_) => move_arg.package_path.clone(),
None => Some(std::env::current_dir()?),
};
// Always root ourselves to the package root, and then compile relative to that.
let rooted_path =
SourcePackageLayout::try_find_root(&path.as_ref().unwrap().canonicalize()?)?;
Expand Down

0 comments on commit 3190084

Please sign in to comment.