Skip to content

Commit

Permalink
update dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mszhanyi committed Oct 7, 2023
1 parent 86bfa8c commit 6626370
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6626370

Please sign in to comment.