diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-08-21 09:43:56 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-08-22 18:37:12 -0700 |
commit | 21d725084912d29e15099e24d23b48592d9dcdc4 (patch) | |
tree | b19d8c2d53dcebba2bc75d16438d5a7af1ae51fb /host/tests | |
parent | 19042c32b8dc1aca1315a4b973803dbf23dfc423 (diff) | |
download | uhd-21d725084912d29e15099e24d23b48592d9dcdc4.tar.gz uhd-21d725084912d29e15099e24d23b48592d9dcdc4.tar.bz2 uhd-21d725084912d29e15099e24d23b48592d9dcdc4.zip |
devtest: Default UHD_LOG_FASTPATH_DISABLE to 1
Diffstat (limited to 'host/tests')
-rwxr-xr-x | host/tests/devtest/uhd_test_base.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/host/tests/devtest/uhd_test_base.py b/host/tests/devtest/uhd_test_base.py index 2bee86941..71e652459 100755 --- a/host/tests/devtest/uhd_test_base.py +++ b/host/tests/devtest/uhd_test_base.py @@ -79,7 +79,15 @@ class shell_application(object): cmd_line = [self.name] cmd_line.extend(args) start_time = time.time() - proc = Popen(cmd_line, stdout=PIPE, stderr=PIPE, close_fds=True) + env = os.environ + env["UHD_LOG_FASTPATH_DISABLE"] = "1" + proc = Popen( + cmd_line, + stdout=PIPE, + stderr=PIPE, + close_fds=True, + env=env + ) self.stdout, self.stderr = proc.communicate() self.returncode = proc.returncode self.exec_time = time.time() - start_time @@ -188,6 +196,8 @@ class uhd_example_test_case(uhd_test_case): """ Run `example' (which has to be a UHD example or utility) with `args'. Return results and the app object. + + Note: UHD_LOG_FASTPATH_DISABLE will be set to 1. """ self.log.info("Running example: `%s %s'", example, " ".join(args)) app = shell_application(example) |