Skip to content

Commit

Permalink
Merge pull request #409 from NguyenNhuDi/develop
Browse files Browse the repository at this point in the history
Fixed FileNotFound error when passing path to --install_dir while running rtest.py on windows
  • Loading branch information
NguyenNhuDi authored Jul 16, 2024
2 parents b78f370 + 8ae985b commit 610da50
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,14 @@ def batch(script, xml):
test_dir = cwd
else:
build_type = "debug" if args.debug else "release"

# deal with windows pathing
install_dir = '//'.join(args.install_dir.split('\\'))

search_paths = [
f"{args.install_dir}//{build_type}//clients//staging",
f"{args.install_dir}//{build_type}//test",
f"{args.install_dir}"
f"{install_dir}//{build_type}//clients//staging",
f"{install_dir}//{build_type}//test",
f"{install_dir}"
]
test_dir = ""
for path_option in search_paths:
Expand Down

0 comments on commit 610da50

Please sign in to comment.