summaryrefslogtreecommitdiff
path: root/validation/validlib/spc300.py
diff options
context:
space:
mode:
authorJean-Philippe NOEL2013-01-17 13:27:59 +0100
committerJean-Philippe NOEL2013-02-13 12:01:32 +0100
commitecd95efb8535481d4c6933c733964d18e4c33796 (patch)
treeeb4a8ce6ea4e9ce1a4d5ccd1fd90e1b104131f99 /validation/validlib/spc300.py
parentfdcf3f258c22796b4cdf979ae2745471a3454956 (diff)
validation/validlib: detect the presence of plc.rom on SPC300 plugs, refs #3127
Diffstat (limited to 'validation/validlib/spc300.py')
-rw-r--r--validation/validlib/spc300.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/validation/validlib/spc300.py b/validation/validlib/spc300.py
index ad7e726e76..b90a30e05b 100644
--- a/validation/validlib/spc300.py
+++ b/validation/validlib/spc300.py
@@ -66,6 +66,11 @@ def get_model(key):
"""Gives the model corresponding to a power strip key"""
return config["plugs"][key][3]
+def plc_rom_is_present(key, interface_index = 0):
+ """Checks if a plc.rom is present on the flash"""
+ result = r_execute((key, interface_index), "ls /usr/local/lib/modules\n")
+ return "plc.rom" in result
+
def get_version(key, interface_index = 0):
"""Gives the version corresponding to a power strip key"""
result = r_execute((key, interface_index), "cat /proc/net/plc/version\n")