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
new target qemu-cleanlog so that log.txt can contain only the last boot
[tests.git]
/
system
/
TestNode.py
diff --git
a/system/TestNode.py
b/system/TestNode.py
index
8f8954c
..
ab614ef
100644
(file)
--- a/
system/TestNode.py
+++ b/
system/TestNode.py
@@
-307,6
+307,13
@@
class TestNode:
.format(self.name(), self.host_box()))
return self.test_box().copy(self.nodedir(), recursive=True, dry_run=dry_run) == 0
.format(self.name(), self.host_box()))
return self.test_box().copy(self.nodedir(), recursive=True, dry_run=dry_run) == 0
+ def qemu_cleanlog(self):
+ "rename log.txt into log.txt.bak in the qemu dir"
+ test_box = self.test_box()
+ test_box.run_in_buildname("cd {}; mv -f log.txt log.txt.bak".
+ format(self.nodedir()), dry_run=self.dry_run())
+ return True
+
def qemu_start(self):
"all nodes: start the qemu instance (also runs qemu-bridge-init start)"
model = self.node_spec['node_fields']['model']
def qemu_start(self):
"all nodes: start the qemu instance (also runs qemu-bridge-init start)"
model = self.node_spec['node_fields']['model']