def run(self):
        if self.verbose:
            self.info("%s initial test ping (max 1 second)..." % self.node.name)
        (status, result) = self.node.cmdresult(["ping", "-q", "-c", "1", "-w",
                                                "1", self.addr])
        if status != 0:
            self.warn("initial ping from %s to %s failed! result:\n%s" % \
                      (self.node.name, self.addr, result))
            return (0.0, 0.0)
        if self.verbose:
            self.info("%s pinging %s (%d seconds)..." % \
                  (self.node.name, self.addr, self.count * self.interval))
        return Cmd.run(self)
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/wlanemanetests.py/PingCmd.run/original