mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
regression test creation
This commit is contained in:
@@ -39,10 +39,17 @@ def start(category, noreg):
|
||||
config = json.load(f)
|
||||
|
||||
# create workspace directory if it doesn't exist
|
||||
workspace_path = config_dir = os.path.abspath(config["workspace"])
|
||||
workspace_path = os.path.abspath(config["workspace"])
|
||||
if not os.path.exists(workspace_path):
|
||||
os.makedirs(workspace_path, exist_ok=True)
|
||||
|
||||
regression_path = os.path.abspath(
|
||||
"agbenchmark/tests/regression/regression_tests.txt"
|
||||
)
|
||||
if not os.path.exists(regression_path):
|
||||
with open(regression_path, "a"):
|
||||
pass
|
||||
|
||||
print("Current configuration:")
|
||||
for key, value in config.items():
|
||||
print(f"{key}: {value}")
|
||||
|
||||
Reference in New Issue
Block a user