aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2020-08-07 13:49:45 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-08-10 15:14:36 -0500
commit2da3cdcb3bd5e00040c7815ec756759be7149414 (patch)
tree4ff91c8a91daf0e057bfea21b2e594af47f37cbd /host
parent9157e11795f3ca86dae2ee930e60a79470d1447f (diff)
downloaduhd-2da3cdcb3bd5e00040c7815ec756759be7149414.tar.gz
uhd-2da3cdcb3bd5e00040c7815ec756759be7149414.tar.bz2
uhd-2da3cdcb3bd5e00040c7815ec756759be7149414.zip
devtest: Support multi_usrp_test on Windows
Windows requires the command 'python' to prepend calls to .py files. This change moves the path to multi_usrp_test.py to an argument on Windows.
Diffstat (limited to 'host')
-rw-r--r--host/tests/devtest/python_api_test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/host/tests/devtest/python_api_test.py b/host/tests/devtest/python_api_test.py
index 9d879cae3..3e51be7d5 100644
--- a/host/tests/devtest/python_api_test.py
+++ b/host/tests/devtest/python_api_test.py
@@ -43,7 +43,12 @@ class uhd_python_api_test(uhd_test_case):
args = [
self.create_addr_args_str(),
]
- app = shell_application(multi_usrp_test_path)
+ app = None
+ if os.name == 'nt':
+ args.insert(0, multi_usrp_test_path)
+ app = shell_application('python')
+ else:
+ app = shell_application(multi_usrp_test_path)
app.run(args)
run_results = {
'return_code': app.returncode,