Skip to content

Commit c7ac72f

Browse files
committed
Update regression_checks
1 parent c71270f commit c7ac72f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extra_tests/regression_checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import pytest
1010

11+
from n3fit.tests.helpers import run_n3fit
1112
from n3fit.tests.test_fit import EXE, check_fit_results
1213
from validphys.utils import yaml_safe
1314

@@ -44,7 +45,7 @@ def test_regression_fit(tmp_path, runcard, replica, regenerate):
4445
if (wname := runcard_info.get("load")) is not None:
4546
shutil.copy(REGRESSION_FOLDER / wname, tmp_path)
4647

47-
sp.run(f"{EXE} {runcard_name} {replica}".split(), cwd=tmp_path, check=True)
48+
run_n3fit(runcard_name, f"{replica}", cwd=tmp_path, check=True)
4849
old_json_file = REGRESSION_FOLDER / f"{runcard}_{replica}.json"
4950

5051
check_fit_results(

0 commit comments

Comments
 (0)