X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestBox.py;h=9e94a87ffdbe0d240783c09f460e864fc1c95608;hb=d62d923bfc6c56e43db497d0feb7c83261402468;hp=7b6fa6bcbbdf282a4b9b178304fa57d727f1b7a5;hpb=4ce14870e42de9b99d3112cebfc8a3b053de0564;p=tests.git diff --git a/system/TestBox.py b/system/TestBox.py index 7b6fa6b..9e94a87 100644 --- 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 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)