persistent = False)
if proc.wait():
- self._logger.warn("Unresponsive node %s got:\n%s%s", self.host, out, err)
+ if verbose:
+ self._logger.warn("Unresponsive node %s got:\n%s%s", self.host, out, err)
return False
elif out.strip().startswith('ALIVE'):
return True
else:
- self._logger.warn("Unresponsive node %s got:\n%s%s", self.host, out, err)
+ if verbose:
+ self._logger.warn("Unresponsive node %s got:\n%s%s", self.host, out, err)
return False
def mkdir(self, path, clean = True):
import time
import unittest
+
class DummyEC(object):
pass
return node
def t_execute(self, node, target):
+ if not node.is_alive():
+ print "*** WARNING: Skipping test: Node %s is not alive\n" % (node.host)
+ return
+
command = "ping -qc3 %s" % target
out = node.execute(command)
self.assertTrue(out.find(expected) > 0)
def t_run(self, node, target):
+ if not node.is_alive():
+ print "*** WARNING: Skipping test: Node %s is not alive\n" % (node.host)
+ return
+
node.mkdir(self.home, clean = True)
command = "ping %s" % target
node.rmdir(self.home)
def t_install(self, node, target):
+ if not node.is_alive():
+ print "*** WARNING: Skipping test: Node %s is not alive\n" % (node.host)
+ return
+
node.mkdir(self.home, clean = True)
prog = """#include <stdio.h>