From 31900841fb0a27d61d78da94560955836b4c6495 Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Fri, 24 Mar 2023 10:34:43 +0800 Subject: [PATCH] fix mpm intergration_test (#3880) --- vm/move-package-manager/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vm/move-package-manager/src/lib.rs b/vm/move-package-manager/src/lib.rs index a54df89ad7..6045bb1c69 100644 --- a/vm/move-package-manager/src/lib.rs +++ b/vm/move-package-manager/src/lib.rs @@ -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()?)?;