def _run_small_test(self): p = Process(datafilereader.SMALL_TEST_PATH) p.run_command('robot --output NONE --log NONE --report NONE .') max_time = 7.0 while p.is_alive() and max_time > 0: time.sleep(0.1) max_time -= 0.1 if max_time <= 0: p.kill() raise AssertionError('process did not stop in 7 second time') return p.get_output(), p.get_errors()
def _run_small_test(self): p = Process(datafilereader.SMALL_TEST_PATH) p.run_command('pybot' + ('.bat' if IS_WINDOWS else '') + ' --output NONE .') max_time = 5.0 while p.is_alive() and max_time > 0: time.sleep(0.1) max_time -= 0.1 if max_time <= 0: p.kill() raise AssertionError('process did not stop in 5 second time') return p.get_output(), p.get_errors()
def test_unicode_command(self): try: Process(u'\xf6').run_command(u'echo \xf6') except UnicodeEncodeError: self.fail('Should not throw unicode error') except OSError as expected: pass
def _run_small_test(self): p = Process(datafilereader.SMALL_TEST_PATH) p.run_command("pybot" + (".bat" if IS_WINDOWS else "") + " --output NONE --log NONE --report NONE .") max_time = 5.0 while p.is_alive() and max_time > 0: time.sleep(0.1) max_time -= 0.1 if max_time <= 0: p.kill() raise AssertionError("process did not stop in 5 second time") return p.get_output(), p.get_errors()
def _run_small_test(self): p = Process(datafilereader.SMALL_TEST_PATH) p.run_command('robot --output NONE --log NONE --report NONE .')