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
*Manage nodes log files into a .tar
[tests.git]
/
system
/
TestBox.py
diff --git
a/system/TestBox.py
b/system/TestBox.py
index
7b6fa6b
..
9e94a87
100644
(file)
--- a/
system/TestBox.py
+++ b/
system/TestBox.py
@@
-17,7
+17,14
@@
class TestBox:
def is_local(self):
return utils.is_local (self.hostname())
def is_local(self):
return utils.is_local (self.hostname())
-
+
+ def tar_logs(self):
+ if os.path.isdir("nodeslogs"):
+ tar_command="tar cvf nodeslogs.tar nodeslogs/ && rm -rf nodeslogs"
+ self.run_in_buildname (tar_command)
+ return True
+ return False
+
def run_in_buildname (self,command):
if self.is_local():
return utils.system(command)
def run_in_buildname (self,command):
if self.is_local():
return utils.system(command)