Home
last modified time | relevance | path

Searched refs:base_utils (Results 1 – 21 of 21) sorted by relevance

/external/autotest/client/common_lib/
Dbase_utils_unittest.py16 from autotest_lib.client.common_lib import base_utils, autotemp
23 self.god.stub_function(base_utils, "open")
31 self.assertEqual(base_utils.ip_to_long('0.0.0.0'), 0)
32 self.assertEqual(base_utils.ip_to_long('255.255.255.255'), 4294967295)
33 self.assertEqual(base_utils.ip_to_long('192.168.0.1'), 3232235521)
34 self.assertEqual(base_utils.ip_to_long('1.2.4.8'), 16909320)
38 self.assertEqual(base_utils.long_to_ip(0), '0.0.0.0')
39 self.assertEqual(base_utils.long_to_ip(4294967295), '255.255.255.255')
40 self.assertEqual(base_utils.long_to_ip(3232235521), '192.168.0.1')
41 self.assertEqual(base_utils.long_to_ip(16909320), '1.2.4.8')
[all …]
Dsite_utils.py16 from autotest_lib.client.common_lib import base_utils
67 cmd_result = base_utils.run('readlink -f /sys/class/net/eth0')
69 cmd_result = base_utils.run('readlink -f /sys/class/net/eth1')
110 return base_utils.run(ping_cmd, args=args, verbose=True,
112 stdout_tee=base_utils.TEE_TO_LOGS,
113 stderr_tee=base_utils.TEE_TO_LOGS).exit_status
192 interface_link = base_utils.run(
283 base_utils.run(cmd, timeout=transfer_timeout, verbose=True)
285 base_utils.run(acl_cmd, timeout=acl_timeout, verbose=True)
289 base_utils.run(cmd, timeout=transfer_timeout, verbose=True,
[all …]
Dsite_utils_unittest.py7 from autotest_lib.client.common_lib import base_utils
255 self.god.stub_with(base_utils, 'run', run_func)
257 base_utils.CmdResult(exit_status=0, stdout='not_u_s_b'))
265 self.god.stub_with(base_utils, 'run', run_func)
267 base_utils.CmdResult(exit_status=-1, stdout='blah'))
275 self.god.stub_with(base_utils, 'run', run_func)
285 self.god.stub_with(base_utils, 'run', run_func)
287 base_utils.CmdResult(exit_status=0, stdout='is usb'))
289 base_utils.CmdResult(exit_status=0, stdout='not_u_s_b'))
Dutils.py11 from autotest_lib.client.common_lib.base_utils import *
/external/autotest/client/cros/multimedia/
Dusb_facade_native.py13 from autotest_lib.client.common_lib import base_utils
152 base_utils.open_write_close(
154 base_utils.open_write_close(
325 read_product_name = base_utils.read_one_line(path)
414 base_utils.open_write_close(self._USB_BIND_FILE_PATH,
432 base_utils.open_write_close(self._USB_UNBIND_FILE_PATH,
/external/autotest/client/site_tests/hardware_Usb30Throughput/
Dhardware_Usb30Throughput.py12 from autotest_lib.client.bin import base_utils
104 base_utils.drop_caches()
106 base_utils.force_copy(src, dst)
/external/autotest/client/site_tests/power_VideoDetector/
Dpower_VideoDetector.py9 from autotest_lib.client.common_lib import base_utils, error
48 base_utils.wait_for_value(backlight.get_max_level)
/external/autotest/site_utils/sponge_lib/
Dautotest_job_info.py10 from autotest_lib.client.common_lib import base_utils
134 self.keyvals = base_utils.read_keyval(keyvals_file)
/external/autotest/server/cros/
Dtradefed_test.py37 from autotest_lib.client.common_lib import base_utils
168 job = base_utils.BgJob([script_filename, target],
170 stdout_tee=base_utils.TEE_TO_LOGS,
171 stderr_tee=base_utils.TEE_TO_LOGS,
178 base_utils.nuke_subprocess(job.sp)
179 base_utils.join_bg_jobs([job])
/external/autotest/server/
Dutils.py12 from autotest_lib.server.base_utils import *
/external/autotest/client/bin/
Dutils.py13 from autotest_lib.client.bin.base_utils import *
Dsite_utils.py20 from autotest_lib.client.bin import base_utils
972 socfamily = base_utils.get_cpu_soc_family()
/external/autotest/client/cros/
Dstorage.py12 from autotest_lib.client.common_lib import base_utils
424 args_dict = base_utils.args_to_dict(args)
Dpower_utils.py6 from autotest_lib.client.common_lib import base_utils
131 result = base_utils.run(cmd, ignore_status=True)
346 result = base_utils.run(cmd, ignore_status=True)
Dliststorage.py24 from autotest_lib.client.common_lib import base_utils as utils
Dpower_suspend.py8 from autotest_lib.client.common_lib import base_utils, error
/external/autotest/server/cros/chaos_lib/
Dchaos_runner.py13 from autotest_lib.client.common_lib import utils as base_utils unknown
141 results = base_utils.run('lsof -i:%s' % WEBDRIVER_PORT,
/external/autotest/client/site_tests/power_LoadTest/
Dpower_LoadTest.py7 from autotest_lib.client.common_lib import base_utils
579 result = base_utils.run(cmd, ignore_status=True)
642 result = base_utils.run(cmd, ignore_status=True)
/external/autotest/site_utils/
Dserver_manager_utils.py19 from autotest_lib.client.common_lib import base_utils as utils
/external/autotest/server/cros/network/
Dwifi_client.py15 from autotest_lib.client.common_lib import base_utils
1327 ' "%s"' % base_utils.sh_escape(message))
/external/autotest/docs/
Dbest-practices.md180 …r tool. There are some helpful utility functions in client/common_lib/base_utils.py. Trivial exa…