From 2da3cdcb3bd5e00040c7815ec756759be7149414 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Fri, 7 Aug 2020 13:49:45 -0500 Subject: 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. --- host/tests/devtest/python_api_test.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'host') 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, -- cgit v1.2.3