Home
last modified time | relevance | path

Searched refs:popen (Results 1 – 5 of 5) sorted by relevance

/tools/acloud/internal/lib/
Dota_tools_test.py107 popen = mock.Mock()
108 popen.communicate.return_value = ("stdout", "stderr")
109 popen.returncode = return_value
110 popen.poll.return_value = return_value
111 return popen
116 popen = mock.Mock()
117 popen.communicate.side_effect = errors.FunctionTimeoutError(
119 popen.returncode = None
120 popen.poll.return_value = None
121 return popen
/tools/test/connectivity/acts/framework/tests/
Dacts_job_test.py65 def test_run_success(self, popen): argument
73 def test_run_stderr(self, popen): argument
83 def test_run_error(self, popen): argument
90 def test_run_with_ignored_error(self, popen): argument
98 def test_run_timeout(self, popen): argument
105 def test_run_no_shell(self, popen): argument
113 def test_job_env(self, popen): argument
117 popen.assert_called_once()
118 _, kwargs = popen.call_args
/tools/acloud/setup/
Dbase_task_runner.py68 console_width = int(os.popen('stty size', 'r').read().split()[1])
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Db29_lib.py67 result = os.popen('ls -l /dev/serial/by-id/*%s*' % B29_CHIP).read()
Dapollo_lib.py106 result = os.popen('ls -l /dev/serial/by-id/*%s*' % APOLLO_CHIP).read()