resiliency tests: hide output of slapos node instance.

parent 9bb954a9
...@@ -179,12 +179,14 @@ class ResiliencyTestSuite(object): ...@@ -179,12 +179,14 @@ class ResiliencyTestSuite(object):
os.path.dirname(sys.argv[0]), os.path.dirname(sys.argv[0]),
'..', '..', '..', 'slapos.cfg' '..', '..', '..', 'slapos.cfg'
) )
# Output is huge and we don't want to store it in memory nor print it
devnull = open('/dev/null', 'w')
command = ['/opt/slapos/bin/slapos', 'node', 'instance', command = ['/opt/slapos/bin/slapos', 'node', 'instance',
'--cfg=%s' % slapos_configuration_file_path, '--cfg=%s' % slapos_configuration_file_path,
'--pidfile=slapos.pid'] '--pidfile=slapos.pid']
subprocess.Popen(command).wait() subprocess.Popen(command, stdout=devnull, stderr=devnull).wait()
subprocess.Popen(command).wait() subprocess.Popen(command, stdout=devnull, stderr=devnull).wait()
subprocess.Popen(command).wait() subprocess.Popen(command, stdout=devnull, stderr=devnull).wait()
success = self.checkDataOnCloneInstance() success = self.checkDataOnCloneInstance()
if success: if success:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment