Esempio n. 1
0
    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()
Esempio n. 2
0
 def test_multiple_commands(self):
     self._run_jobs([
         self.uname, self.rh_release,
         rho_cmds.ScriptRhoCmd("/sbin/ifconfig")
     ])
Esempio n. 3
0
 def test_ls_tmp_lots(self):
     self._run_jobs([rho_cmds.ScriptRhoCmd("ls -lart /tmp")], 42)
Esempio n. 4
0
 def test_echo_blippy(self):
     self._run_jobs([rho_cmds.ScriptRhoCmd("echo blippy")])