aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/bist.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/bist.py')
-rw-r--r--mpm/python/usrp_mpm/bist.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/bist.py b/mpm/python/usrp_mpm/bist.py
index b20020e1f..2287d79ab 100644
--- a/mpm/python/usrp_mpm/bist.py
+++ b/mpm/python/usrp_mpm/bist.py
@@ -216,14 +216,13 @@ def filter_results_for_lv(results, lv_compat_format):
}
return results
-def get_product_id_from_eeprom(valid_ids):
+def get_product_id_from_eeprom(valid_ids, cmd='eeprom-id'):
"""Return the mboard product ID
Returns something like n300, n310, e320...
"""
- cmd = ['eeprom-id']
output = subprocess.check_output(
- cmd,
+ [cmd],
stderr=subprocess.STDOUT,
shell=True,
).decode('utf-8')