This commit is contained in:
Paul Gauthier 2023-06-23 15:00:47 -07:00
parent 200ff36848
commit 4c745c3cdd

View file

@ -1,5 +1,6 @@
import os import os
import shutil import shutil
import subprocess
import sys import sys
from pathlib import Path from pathlib import Path
@ -85,9 +86,10 @@ def main(tempdir):
coder.run(with_message=instructions) coder.run(with_message=instructions)
run_tests() passed = run_tests()
dump(passed)
import subprocess
def run_tests(): def run_tests():
test_files = [file for file in os.listdir() if "test" in file and file.endswith(".py")] test_files = [file for file in os.listdir() if "test" in file and file.endswith(".py")]
@ -101,6 +103,7 @@ def run_tests():
return all_tests_passed return all_tests_passed
if __name__ == "__main__": if __name__ == "__main__":
# with TemporaryDirectory() as tempdir: # with TemporaryDirectory() as tempdir:
tempdir = "tmp.benchmark" tempdir = "tmp.benchmark"