From 6626370ef5dd53ade674c7be474d067b35c9b6b6 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 7 Oct 2023 18:42:49 +0800 Subject: [PATCH] update dir --- tools/ci_build/build.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index ab3ec98472f2d..24320483470b5 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1814,10 +1814,11 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs): # models_dir = os.path.join(os.path.dirname(cwd), "models") # run_subprocess([os.path.join(cwd, "onnx_test_runner"), "-j 2", models_dir], cwd=cwd, dll_path=dll_path) else: - ctest_cmd = [ctest_path, "--build-config", config, "--verbose", "--timeout", args.test_all_timeout] - run_subprocess(ctest_cmd, cwd=cwd, dll_path=dll_path) - models_dir = os.path.join(build_dir, "models") - run_subprocess([os.path.join(cwd, "onnx_test_runner"), "-j 2", models_dir], cwd=cwd, dll_path=dll_path) + # ctest_cmd = [ctest_path, "--build-config", config, "--verbose", "--timeout", args.test_all_timeout] + # run_subprocess(ctest_cmd, cwd=cwd, dll_path=dll_path) + models_dir = os.path.join(cwd, "models", "zoo") + print(f"models_dir = {models_dir}") + run_subprocess([os.path.join(cwd, config, "onnx_test_runner"), "-j 2", models_dir], cwd=cwd, dll_path=dll_path) if args.enable_pybind: python_path = None