Skip to content

Commit

Permalink
Fix windows test build issue (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani authored Oct 9, 2024
1 parent 77a88c3 commit b3dfed6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,11 @@ def test(args: argparse.Namespace, env: dict[str, str]):
Run the tests.
"""
lib_dir = args.build_dir / "test"
if util.is_windows():
# On Windows, the unit test executable is found inside a directory named after the configuration
# (e.g. Debug, Release, etc.) within the test directory.
# Whereas on as on platforms, the executable is directly under the test directory.
lib_dir = lib_dir / args.config
if not args.ort_home:
_ = util.download_dependencies(args.use_cuda, args.use_rocm, args.use_dml, lib_dir)
else:
Expand Down

0 comments on commit b3dfed6

Please sign in to comment.