def setUp(self): self.jobs = ssh_jobs.SshJobs() self.output = [] self.retcode = [] self.sleep30 = rho_cmds.ScriptRhoCmd("sleep 30") self.sleep1 = rho_cmds.ScriptRhoCmd("sleep 1") self.uname = rho_cmds.UnameRhoCmd() self.rh_release = rho_cmds.RedhatReleaseRhoCmd()
def test_multiple_commands(self): self._run_jobs([ self.uname, self.rh_release, rho_cmds.ScriptRhoCmd("/sbin/ifconfig") ])
def test_ls_tmp_lots(self): self._run_jobs([rho_cmds.ScriptRhoCmd("ls -lart /tmp")], 42)
def test_echo_blippy(self): self._run_jobs([rho_cmds.ScriptRhoCmd("echo blippy")])