git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nodestate_show displays current boot state
[tests.git]
/
system
/
TestNode.py
diff --git
a/system/TestNode.py
b/system/TestNode.py
index
5d8771b
..
c0e098b
100644
(file)
--- a/
system/TestNode.py
+++ b/
system/TestNode.py
@@
-145,10
+145,15
@@
class TestNode:
self.name(),{'boot_state':'safeboot'})
return True
self.name(),{'boot_state':'safeboot'})
return True
- def nodestate_
safe
boot (self):
+ def nodestate_boot (self):
self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),
self.name(),{'boot_state':'boot'})
return True
self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),
self.name(),{'boot_state':'boot'})
return True
+
+ def nodestate_show (self):
+ state=self.test_plc.apiserver.GetNodes(self.test_plc.auth_root(), self.name(), ['boot_state'])[0]['boot_state']
+ print self.name(),':',state
+ return True
def configure_qemu(self):
if not self.is_qemu():
def configure_qemu(self):
if not self.is_qemu():