Skip to content

Commit bfe15e3

Browse files
committed
bugfix: If --run-tests is enabled, at least 8 rounds are required to run all QA actions.
1 parent f0a9042 commit bfe15e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

metagpt/software_company.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def generate_repo(
6060

6161
if run_tests:
6262
company.hire([QaEngineer()])
63+
if n_round < 8:
64+
n_round = 8 # If `--run-tests` is enabled, at least 8 rounds are required to run all QA actions.
6365
else:
6466
stg_path = Path(recover_path)
6567
if not stg_path.exists() or not str(stg_path).endswith("team"):

0 commit comments

Comments
 (0)