Skip to content

Commit 012216a

Browse files
committed
more efficient setupt
1 parent 8adeece commit 012216a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.evergreen/scripts/setup_tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,12 @@ def handle_test_env() -> None:
362362
write_env("DISABLE_CONTEXT")
363363

364364
if test_name == "perf":
365-
run_command("git clone --depth 1 https://github.com/mongodb/specifications.git")
366365
data_dir = ROOT / "specifications/source/benchmarking/data"
367-
run_command("tar xf extended_bson.tgz", cwd=data_dir)
368-
run_command("tar xf parallel.tgz", cwd=data_dir)
369-
run_command("tar xf single_and_multi_document.tgz", cwd=data_dir)
366+
if not data_dir.exists():
367+
run_command("git clone --depth 1 https://github.com/mongodb/specifications.git")
368+
run_command("tar xf extended_bson.tgz", cwd=data_dir)
369+
run_command("tar xf parallel.tgz", cwd=data_dir)
370+
run_command("tar xf single_and_multi_document.tgz", cwd=data_dir)
370371
write_env("TEST_PATH", str(data_dir))
371372
write_env("OUTPUT_FILE", str(ROOT / "results.json"))
372373

0 commit comments

Comments
 (0)