From 0faae9368f18a27c690a92c652013578cb2dda3f Mon Sep 17 00:00:00 2001 From: mannaandpoem <1580466765@qq.com> Date: Thu, 25 Jan 2024 11:52:14 +0800 Subject: [PATCH] Add the tar command to extract the .zip file --- tests/metagpt/test_incremental_dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/metagpt/test_incremental_dev.py b/tests/metagpt/test_incremental_dev.py index 1baa82a72..6a26f9b83 100644 --- a/tests/metagpt/test_incremental_dev.py +++ b/tests/metagpt/test_incremental_dev.py @@ -113,7 +113,7 @@ def get_incremental_dev_result(idea, project_name, use_review=True): subprocess.run(["tar", "-xf", f"{project_path}.zip", "-C", str(project_path.parent)], check=True) except subprocess.CalledProcessError as e: # If the extraction fails, throw an exception - raise Exception(f"Failed to unzip project {project_name}. Error: {e}") + raise Exception(f"Failed to extract project {project_name}. Error: {e}") check_or_create_base_tag(project_path) args = [idea, "--inc", "--project-path", project_path, "--n-round", "20"]