From f6f05fa0c638e8cc05bcf0cb0304782c83f758ec Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 17 Dec 2024 16:48:31 -0800 Subject: [PATCH] fix: Use cargo test for rust tests --- benchmark/benchmark.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index bcbf02137..825f77759 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import datetime import json import os @@ -727,6 +727,7 @@ def run_test_real( break try: + # pass test_files in, and choose the test command based on them ai! errors = run_unit_tests(testdir, history_fname) except subprocess.TimeoutExpired: errors = "Tests timed out!" @@ -790,7 +791,7 @@ def run_unit_tests(testdir, history_fname): timeout = 60 command = ["pytest"] - + command = "cargo test -- --include-ignored".split() print(" ".join(command)) result = subprocess.run(