Searched refs:expect_call (Results 1 – 25 of 44) sorted by relevance
12
/external/autotest/client/bin/ |
D | kernel_unittest.py | 19 bootloader.remove_kernel.expect_call(tag) 20 bootloader.add_kernel.expect_call(image, tag, initrd=initrd, 24 bootloader.add_args.expect_call(kernel=tag, args=a) 25 bootloader.remove_args.expect_call(kernel=tag, args='_dummy_') 74 time.time.expect_call().and_return(when) 79 self.kernel.job.next_step_prepend.expect_call(status) 80 self.kernel.job.config_get.expect_call( 82 kernel._add_kernel_to_bootloader.expect_call( 85 utils.system.expect_call('touch /fastboot') 86 self.kernel.job.start_reboot.expect_call() [all …]
|
D | job_unittest.py | 178 job.base_client_job._cleanup_debugdir_files.expect_call() 179 job.base_client_job._cleanup_results_dir.expect_call() 181 self.job._load_state.expect_call() 185 harness.select.expect_call(None, 203 utils.drop_caches.expect_call() 206 os.path.exists.expect_call(download).and_return(False) 207 os.mkdir.expect_call(download) 208 shutil.copyfile.expect_call(mock.is_string_comparator(), 212 self.job.config_get.expect_call( 217 job_sysinfo.log_per_reboot_data.expect_call() [all …]
|
D | package_unittest.py | 25 os.path.isfile.expect_call(input_package).and_return(True) 26 utils.system_output.expect_call( 28 utils.system_output.expect_call( 44 os_dep.command.expect_call('rpm') 49 utils.system_output.expect_call(v_cmd).and_return(ver) 53 utils.system_output.expect_call(s_cmd).and_return('source') 55 utils.system_output.expect_call(v_cmd).and_return(ver) 57 utils.system_output.expect_call(a_cmd).and_return('586') 59 utils.system.expect_call(i_cmd) 81 os_dep.command.expect_call('dpkg') [all …]
|
D | setup_job_unittest.py | 156 job.base_client_job._cleanup_debugdir_files.expect_call() 157 job.base_client_job._cleanup_results_dir.expect_call() 215 os.path.exists.expect_call(tmp_dir).and_return(True) 216 os.path.isdir.expect_call(tmp_dir).and_return(False) 233 os.path.exists.expect_call(tmp_dir).and_return(False) 234 os.mkdir.expect_call(tmp_dir) 235 os.path.isdir.expect_call(tmp_dir).and_return(True) 236 os.path.exists.expect_call(results_dir1).and_return(True) 237 os.path.exists.expect_call(results_dir2).and_return(True) 238 os.path.exists.expect_call(results_dir3).and_return(False) [all …]
|
D | partition_unittest.py | 78 os.popen.expect_call(SAMPLE_FDISK).and_return( 107 partition.partition.expect_call(job, '/dev/hdc3').and_return('3') 113 partition.partition.expect_call(job, '/dev/hdc2').and_return('2') 114 partition.partition.expect_call(job, '/dev/hdc3').and_return('3') 121 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')
|
/external/autotest/client/bin/net/ |
D | net_utils_unittest.py | 41 utils.system.expect_call('service network restart', ignore_status=False) 47 utils.system.expect_call('service network start', ignore_status=False) 54 utils.system.expect_call('service network stop', ignore_status=False) 62 utils.system.expect_call(msg, ignore_status=False) 64 utils.system.expect_call(msg, ignore_status=False) 72 utils.system.expect_call(msg, ignore_status=False) 74 utils.system.expect_call(msg, ignore_status=False) 86 socket.socket.expect_call(socket.PF_PACKET, 90 s.settimeout.expect_call(net_utils.TIMEOUT) 91 s.bind.expect_call(('eth0', net_utils.raw_socket.ETH_P_ALL)) [all …]
|
/external/autotest/server/ |
D | autotest_unittest.py | 70 utils.get_server_dir.expect_call().and_return(self.serverdir) 91 location = os.path.abspath.expect_call(location).and_return(location) 94 os.getcwd.expect_call().and_return('cwd') 95 os.chdir.expect_call(os.path.join(self.serverdir, '../client')) 96 utils.system.expect_call('tools/make_clean', ignore_status=True) 97 os.chdir.expect_call('cwd') 98 utils.get.expect_call(os.path.join(self.serverdir, 101 self.host.wait_up.expect_call(timeout=30) 102 self.host.setup.expect_call() 103 self.host.get_autodir.expect_call().and_return("autodir") [all …]
|
D | subcommand_unittest.py | 63 subcommand.os.path.abspath.expect_call('dir').and_return('/foo/dir') 64 subcommand.os.path.exists.expect_call('/foo/dir').and_return(False) 65 subcommand.os.mkdir.expect_call('/foo/dir') 67 (subcommand.os.path.exists.expect_call('/foo/dir/debug') 69 subcommand.os.mkdir.expect_call('/foo/dir/debug') 80 subcommand.os.fork.expect_call().and_return(1000) 115 subcommand.os.pipe.expect_call().and_return((10, 20)) 116 subcommand.os.fork.expect_call().and_return(0) 117 subcommand.os.close.expect_call(10) 118 fork_hook.expect_call(cmd) [all …]
|
D | rpm_kernel_unittest.py | 34 host.get_tmp_dir.expect_call().and_return(remote_tmpdir) 39 utils.run.expect_call('/usr/bin/rpm -q -p %s' % rpm).and_return(result) 40 self.kernel.get_image_name.expect_call().and_return("vmlinuz") 41 host.send_file.expect_call(rpm, remote_rpm) 42 host.run.expect_call('rpm -e ' + rpm_package, ignore_status = True) 43 host.run.expect_call('rpm --force -i ' + remote_rpm) 44 self.kernel.get_vmlinux_name.expect_call().and_return("/boot/vmlinux") 45 host.run.expect_call('cd /;rpm2cpio %s | cpio -imuv ./boot/vmlinux' % 47 host.run.expect_call('ls /boot/vmlinux') 48 host.bootloader.remove_kernel.expect_call('autotest') [all …]
|
D | deb_kernel_unittest.py | 30 self.host.get_tmp_dir.expect_call().and_return(self.remote_tmpdir) 31 self.host.send_file.expect_call(self.kernel.source_material, 39 self.host.run.expect_call('dpkg -i "%s"' % 44 utils.run.expect_call('dpkg-deb -f "%s" version' % 46 utils.run.expect_call('dpkg-deb -f "%s" version' % 48 self.host.run.expect_call('mkinitramfs -o "/boot/initrd.img-1" "1"') 50 utils.run.expect_call('dpkg-deb -f "%s" version' % 52 utils.run.expect_call('dpkg-deb -f "%s" version' % 54 self.host.bootloader.add_kernel.expect_call('/boot/vmlinuz-1', 68 self.host.run.expect_call('dpkg -x "%s" "%s"' %
|
D | source_kernel_unittest.py | 34 self.kernel_autotest.install.expect_call(self.host) 35 self.host.get_tmp_dir.expect_call().and_return("tmpdir") 36 self.kernel_autotest.run.expect_call(ctlfile, "tmpdir", self.host) 53 self.host.get_tmp_dir.expect_call().and_return("tmpdir") 54 self.kernel_autotest.run.expect_call(ctlfile, "tmpdir", self.host)
|
/external/autotest/client/common_lib/ |
D | test_unittest.py | 65 self.test.drop_caches_between_iterations.expect_call() 66 before_hook.expect_call(self.test) 67 self.test.run_once.expect_call(1, 2, arg='val') 68 self.test.postprocess_iteration.expect_call() 69 self.test.analyze_perf_constraints.expect_call([]) 70 after_hook.expect_call(self.test) 86 self.test.drop_caches_between_iterations.expect_call() 87 before_hook.expect_call(self.test) 88 self.test.run_once.expect_call(1, 2, arg='val').and_raises(error) 89 after_hook.expect_call(self.test) [all …]
|
D | base_utils_unittest.py | 63 base_utils.open.expect_call("filename", "r").and_return(test_file) 115 base_utils.open.expect_call("filename", "w").and_return(test_file) 154 base_utils.open.expect_call("filename", "w").and_return(test_file) 174 os.path.exists.expect_call(filename).and_return(True) 175 base_utils.open.expect_call(filename).and_return(test_file) 179 os.path.isdir.expect_call("file").and_return(False) 187 os.path.isdir.expect_call("file").and_return(False) 188 os.path.exists.expect_call("file").and_return(False) 194 os.path.isdir.expect_call("file").and_return(False) 201 os.path.isdir.expect_call("dir").and_return(True) [all …]
|
/external/autotest/client/common_lib/test_utils/ |
D | mock_demo.py | 84 m2.method1.expect_call().and_return(1) 85 m2.method3.expect_call(10).and_return(10) 86 f.expect_call("how many").and_return(42) 87 m1.method2.expect_call(5).and_return(0) 88 m2.method1.expect_call().and_return(2) 89 m2.method4.expect_call(1, 4).and_return(6) 90 m2.method2.expect_call(3).and_return(6) 91 m2.method2.expect_call(mock.is_string_comparator()).and_return("foo") 110 c.method1.expect_call() 111 c.method2.expect_call(4).and_return(4) [all …]
|
/external/autotest/tko/ |
D | utils_unittest.py | 56 os.path.exists.expect_call( 63 os.path.exists.expect_call( 65 os.path.exists.expect_call( 72 os.path.exists.expect_call( 74 os.path.exists.expect_call( 76 os.path.exists.expect_call( 83 os.path.exists.expect_call( 85 os.path.exists.expect_call( 87 os.path.exists.expect_call("/.autoserv_execute").and_return(True) 93 os.path.exists.expect_call( [all …]
|
/external/autotest/database/ |
D | database_connection_unittest.py | 66 self._fake_backend.connect.expect_call(**_CONNECT_KWARGS) 77 self._fake_backend.connect.expect_call(**_CONNECT_KWARGS) 86 self._fake_backend.disconnect.expect_call() 87 call = self._fake_backend.connect.expect_call(**_CONNECT_KWARGS) 93 self._fake_backend.connect.expect_call(**_CONNECT_KWARGS).and_raises( 96 time.sleep.expect_call(_RECONNECT_DELAY) 110 self._fake_backend.disconnect.expect_call() 117 self._fake_backend.disconnect.expect_call() 142 self._fake_backend.connect.expect_call(**_CONNECT_KWARGS) 150 self._fake_backend.disconnect.expect_call() [all …]
|
D | db_utils_unittest.py | 47 self.manager.execute.expect_call('DROP VIEW `%s`' % view) 62 self.manager.execute.expect_call( 70 self.manager.get_db_name.expect_call().and_return(self.DB_NAME) 71 self.manager.execute.expect_call(
|
/external/autotest/scheduler/ |
D | drones_unittest.py | 30 drones.drone_utility.create_host.expect_call('fakehost').and_return( 32 self._mock_host.is_up.expect_call().and_return(False) 40 drones.drone_utility.create_host.expect_call('fakehost').and_return( 42 self._mock_host.is_up.expect_call().and_return(True) 45 self._mock_host.run.expect_call( 58 drones.drone_utility.create_host.expect_call('fakehost').and_return( 60 self._mock_host.is_up.expect_call().and_return(True) 67 self._mock_host.run.expect_call(
|
D | monitor_db_unittest.py | 460 gc.collect.expect_call().and_return(0) 461 gc_stats._log_garbage_collector_stats.expect_call() 571 .expect_call(self.execution_tag, 593 self.mock_drone_manager.get_pidfile_contents.expect_call( 659 self.mock_drone_manager.get_pidfile_contents.expect_call( 668 self.mock_drone_manager.is_process_running.expect_call( 757 task.poll.expect_call() 758 task.is_done.expect_call().and_return(False) 759 task.abort.expect_call() 771 task.abort.expect_call() [all …]
|
D | agent_task_unittest.py | 40 system_utils.get_drones.expect_call().and_return(self._drones) 42 models.DroneSet.drone_sets_enabled.expect_call().and_return(False) 57 system_utils.get_drones.expect_call().and_return(self._drones) 59 models.DroneSet.drone_sets_enabled.expect_call().and_return(False)
|
D | thread_lib_unittest.py | 33 drones.drone_utility.create_host.expect_call(hostname).and_return( 35 self._mock_host.is_up.expect_call().and_return(True) 65 self._mock_host.run.expect_call( 156 task_queue.wait_on_drones.expect_call() 167 task_queue.wait_on_drones.expect_call() 201 self._mock_host.run.expect_call( 219 self._mock_host.run.expect_call(
|
/external/autotest/server/hosts/ |
D | base_classes_unittest.py | 40 utils.get_server_dir.expect_call().and_return("/unittest/server") 55 installableObj.install.expect_call(host) 62 global_config.global_config.get_config_value.expect_call( 71 global_config.global_config.get_config_value.expect_call( 80 global_config.global_config.get_config_value.expect_call( 90 global_config.global_config.get_config_value.expect_call( 101 global_config.global_config.get_config_value.expect_call(
|
D | bootloader_unittest.py | 54 host.get_tmp_dir.expect_call().and_return(TMPDIR) 55 utils.get_server_dir.expect_call().and_return(SERVERDIR) 56 host.send_file.expect_call(BOOTTOOL_SRC, TMPDIR) 74 mock_install.expect_call() 88 mock_install.expect_call()
|
/external/autotest/client/tests/wb_kupdate/ |
D | wb_kupdate_unittest.py | 53 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10) 55 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10) 57 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(11) 80 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10) 82 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10)
|
/external/autotest/tko/parsers/ |
D | version_0_unittest.py | 37 (models.test.parse_host_keyval.expect_call('.', hostname) 42 models.job.read_keyval.expect_call('.').and_return( 56 models.job.read_keyval.expect_call('.').and_return(raw_keyval) 61 version_0.job.find_hostname.expect_call('.').and_raises( 75 version_0.job.find_hostname.expect_call('.').and_return('foo') 86 version_0.job.find_hostname.expect_call('.').and_raises( 100 models.job.read_keyval.expect_call('.').and_return(raw_keyval) 113 models.job.read_keyval.expect_call('.').and_return(raw_keyval) 127 models.job.read_keyval.expect_call('.').and_return(raw_keyval)
|
12