aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/e320_bist
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2018-10-17 14:01:51 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-10-18 18:20:14 -0700
commit327893e505c28e1daa20e1c38e2015ced5abe218 (patch)
treebc25c0ca5420a11f1fedc209da5c58ab29eb6deb /mpm/python/e320_bist
parent370d4647397f0d04cffd73a0a44eaa0847b01f6f (diff)
downloaduhd-327893e505c28e1daa20e1c38e2015ced5abe218.tar.gz
uhd-327893e505c28e1daa20e1c38e2015ced5abe218.tar.bz2
uhd-327893e505c28e1daa20e1c38e2015ced5abe218.zip
e320_bist: print extra output ref_clock tests
Diffstat (limited to 'mpm/python/e320_bist')
-rwxr-xr-xmpm/python/e320_bist9
1 files changed, 6 insertions, 3 deletions
diff --git a/mpm/python/e320_bist b/mpm/python/e320_bist
index c9664ce00..ef7c85980 100755
--- a/mpm/python/e320_bist
+++ b/mpm/python/e320_bist
@@ -616,16 +616,18 @@ class E320BIST(object):
if self.args.dry_run:
return True, {'ref_locked': True}
result = {}
+ env = os.environ.copy()
+ env['UHD_LOG_CONSOLE_LEVEL'] = 'error'
cmd = ['uhd_usrp_probe', '--args', 'addr=127.0.0.1,clock_source=' + clock_source,
'--sensor']
sensor_path = '/mboards/0/sensors/ref_locked'
cmd.append(sensor_path)
ref_lock_executor = ' '.join(cmd)
- print(ref_lock_executor)
try:
output = subprocess.check_output(
ref_lock_executor,
- stderr=subprocess.PIPE,
+ stderr=subprocess.STDOUT,
+ env=env,
shell=True,
)
except subprocess.CalledProcessError as ex:
@@ -637,7 +639,8 @@ class E320BIST(object):
result['ref_locked'] = True
else:
result['ref_locked'] = False
- result['error_msg'] = "Reference Clock not locked"
+ result['error_msg'] = ("Reference Clock not locked."
+ " Extra output:" + output)
return result
def bist_ref_clock_int(self):