From d13ff918de84fedaeeff9cb0a0ba10e613e856c5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 26 Jun 2023 20:18:03 -0700 Subject: [PATCH] aider: Refactor unit tests to run using docker python3.8 and mount only the file being run. # Context: USER: run the unit tests using docker python3.8 mounting just the file being run --- scripts/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/benchmark.py b/scripts/benchmark.py index 867ffecf5..fa83ae868 100755 --- a/scripts/benchmark.py +++ b/scripts/benchmark.py @@ -353,7 +353,7 @@ def run_unit_tests(testdir, history_fname): dump(test_file) try: result = subprocess.run( - ["python", test_file], + ["docker", "run", "--rm", "-v", f"{test_file}:/app/{test_file.name}", "python:3.8", "python", f"/app/{test_file.name}"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True,