/external/autotest/client/bin/ |
D | package.py | 33 file_result = utils.system_output('file ' + rpm_package) 46 i_cmd = 'rpm -q ' + utils.system_output(v_cmd) + ' 2>&1 >/dev/null' 50 source = utils.system_output(s_cmd) 55 package_info['version'] = utils.system_output(v_cmd) 56 package_info['arch'] = utils.system_output(a_cmd) 119 file_result = utils.system_output('file ' + dpkg_package) 133 i_cmd = 'dpkg -s ' + utils.system_output(v_cmd) + ' 2>/dev/null' 136 package_info['version'] = utils.system_output(v_cmd) 137 package_info['arch'] = utils.system_output(a_cmd) 139 package_status = utils.system_output(i_cmd, ignore_status=True) [all …]
|
D | package_unittest.py | 26 utils.system_output.expect_call( 28 utils.system_output.expect_call( 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') 84 utils.system_output.expect_call(v_cmd).and_return(ver) 87 utils.system_output.expect_call(v_cmd).and_return(ver) 89 utils.system_output.expect_call(a_cmd).and_return('586') 91 utils.system_output.expect_call(i_cmd, [all …]
|
D | utils.py | 69 run_cmd = utils.system_output 194 vmlinux = '/boot/vmlinux-%s' % utils.system_output('uname -r') 197 vmlinux = '/lib/modules/%s/build/vmlinux' % utils.system_output('uname -r') 208 map = '/boot/System.map-%s' % utils.system_output('uname -r') 211 map = '/lib/modules/%s/build/System.map' % utils.system_output('uname -r') 219 kernel_version = utils.system_output('uname -r') 250 machine_name = utils.system_output('uname -m').strip() 408 file_data = utils.system_output('file -L ' + filename) 457 return utils.system_output(cmd).splitlines() 462 meminfo = utils.system_output('grep %s /proc/meminfo' % key) [all …]
|
D | fsinfo.py | 120 out = utils.system_output(cmd) 124 out = utils.system_output(cmd) 192 utils.system_output(cmd) 196 out = utils.system_output(cmd) 200 utils.system_output(cmd, ignore_status=True) 339 utils.system_output(cmd) 343 current_option = utils.system_output(cmd) 347 utils.system_output(cmd, ignore_status=True) 352 needed_out = utils.system_output(cmd)
|
D | partition.py | 61 for line in utils.system_output('mount').splitlines(): 64 for line in utils.system_output('swapon -s').splitlines(): 72 for line in utils.system_output('mount').splitlines(): 189 uuid = utils.system_output('blkid -p -s UUID -o value %s' % p.device) 578 utils.system_output("yes | %s" % mkfs_cmd) 628 utils.system_output(fsck_cmd) 712 fuser = utils.system_output(cmd) 719 ps = utils.system_output('ps -p %s | sed 1d' % pid) 885 loop_path = utils.system_output(cmd)
|
/external/autotest/client/bin/net/ |
D | net_utils_unittest.py | 192 utils.system_output.expect_call(cmd).and_return('\n field: match') 198 utils.system_output.expect_call(cmd).and_return(None) 202 utils.system_output.expect_call(cmd).and_return(' field: match') 313 utils.system_output.expect_call(cmd).and_return( 318 utils.system_output.expect_call(cmd).and_return( 323 utils.system_output.expect_call(cmd).and_return('') 332 utils.system_output.expect_call(cmd).and_return( 337 utils.system_output.expect_call(cmd).and_return( 342 utils.system_output.expect_call(cmd).and_return('') 357 utils.system_output.expect_call(cmd).and_return( [all …]
|
/external/autotest/client/site_tests/kernel_fs_Punybench/ |
D | kernel_fs_Punybench.py | 35 result = utils.system_output( 55 utils.system_output('mkdir -p %s %s' % (dir, mnt)) 56 utils.system_output('mount -t ecryptfs %s %s %s' % 67 utils.system_output('umount ' + mnt) 68 utils.system_output('rm -R ' + dir) 69 utils.system_output('rm -R ' + mnt) 364 utils.system_output('swapoff /dev/zram0') 367 utils.system_output('stop ui') 379 utils.system_output('swapon /dev/zram0') 380 utils.system_output('start ui')
|
/external/autotest/client/site_tests/network_DhcpRequestHostName/ |
D | network_DhcpRequestHostName.py | 27 pid = utils.system_output('pgrep shill') 28 process_info = utils.system_output('ps %s' % pid) 35 original_hostname = utils.system_output('hostname') 70 system_hostname = utils.system_output('hostname') 73 utils.system_output('hostname %s' % original_hostname)
|
/external/autotest/client/common_lib/ |
D | software_manager.py | 242 inst_version = utils.system_output(cmd) 261 inst_archs = utils.system_output(cmd) 280 installed_packages = utils.system_output('rpm -qa').splitlines() 300 result = utils.system_output(l_cmd) 322 name = utils.system_output(n_cmd) 325 package_status = utils.system_output(i_cmd, ignore_status=True) 338 raw_list = utils.system_output('dpkg -l').splitlines()[5:] 356 return utils.system_output(l_cmd).split('\n') 379 self.yum_version = utils.system_output(y_cmd, ignore_status=True) 504 self.zypper_version = utils.system_output(z_cmd, ignore_status=True) [all …]
|
/external/autotest/client/site_tests/security_SysVIPC/ |
D | security_SysVIPC.py | 26 utils.system_output('ipcs > "%s/ipcs-output.txt"' % self.resultsdir) 44 for link in utils.system_output(cmd).splitlines(): 53 for line in utils.system_output(cmd, ignore_status=True).splitlines(): 67 for line in utils.system_output(cmd, ignore_status=True).splitlines(): 103 queues = utils.system_output('ipcs -q | grep ^0', ignore_status=True)
|
/external/autotest/client/cros/ |
D | liststorage.py | 52 def system_output(command, host=None, ignore_status=False): function 62 return utils.system_output(command, ignore_status=ignore_status) 91 output = system_output(cmd, host, ignore_status=ignore_status) 122 lsusb_output = system_output(LSUSB_CMD, host) 154 udev_serial_output = system_output(UDEV_CMD_FOR_SERIAL_NUMBER % device, 300 for basename in system_output('ls %s' % spath, host).splitlines(): 334 for dev in system_output('ls %s' % INFO_PATH, host).splitlines():
|
D | upstart.py | 43 return utils.system_output('status %s' % service_name).find('start/running') != -1 54 utils.system_output('restart %s' % service_name) 56 utils.system_output('start %s' % service_name)
|
D | verity_utils.py | 71 fuser = utils.system_output('fuser -v %s' % (device), 74 lsblk = utils.system_output('lsblk %s' % (device), 134 utils.system_output(self.dd_cmd % (self.file, self.blocks)) 146 self.table = utils.system_output(self.verity_cmd % (self.alg, 162 self.loop = utils.system_output('losetup -f --show %s' % (self.file))
|
/external/autotest/client/site_tests/platform_MetricsUploader/ |
D | platform_MetricsUploader.py | 102 utils.system_output('truncate --size=0 /run/metrics/uma-events') 103 utils.system_output('metrics_client test 10 0 100 10') 112 utils.system_output('metrics_daemon -uploader_test ' 127 utils.system_output('metrics_daemon -uploader_test ' 158 utils.system_output('metrics_daemon -uploader_test ' 186 utils.system_output('metrics_daemon -uploader_test '
|
/external/autotest/client/site_tests/network_EthCaps/ |
D | network_EthCaps.py | 39 self._bus_info = utils.system_output(cmd) 64 for ln in utils.system_output(cmd).splitlines(): 144 utils.system_output("ethtool -s %s wol g" % self._ethname) 181 log_info_str = utils.system_output("egrep '(SMI|PM1|GPE0)_STS:' %s" % 205 utils.system_output("ethtool -s %s wol %s" %
|
/external/autotest/client/cros/power/ |
D | power_utils.py | 116 utils.system_output(command) 147 psu = utils.system_output('mosys psu type') 187 psu = utils.system_output('mosys -vvvv psu type', 351 level = float(utils.system_output(cmd).rstrip()) 379 return utils.system_output(cmd).rstrip() 499 utils.system_output(cmd).rstrip()) 512 return float(utils.system_output(cmd).strip()) 683 self._mch_bar = int(utils.system_output(cmd), 16) & 0xfffffffe 691 self._dmi_bar = int(utils.system_output(cmd), 16) & 0xfffffffe 696 return int(utils.system_output(cmd), 16) [all …]
|
/external/autotest/client/site_tests/power_Draw/ |
D | power_Draw.py | 24 if utils.system_output('status powerd').find('start/running') != -1: 26 utils.system_output('stop powerd') 57 utils.system_output('start powerd');
|
/external/autotest/client/tests/btreplay/ |
D | btreplay.py | 58 self.results.append(utils.system_output(cmd, retain_output=True)) 64 self.results.append(utils.system_output(cmd, retain_output=True)) 72 self.results.append(utils.system_output(cmd, retain_output=True)) 87 self.results.append(utils.system_output(cmd, retain_output=True))
|
/external/autotest/client/site_tests/login_LogoutProcessCleanup/ |
D | login_LogoutProcessCleanup.py | 25 pid = utils.system_output('ps -U chronos -o pid,args | grep %s' 54 return utils.system_output('pgrep "^session_manager$"', 60 return utils.system_output('pgrep -U chronos', 179 proc_args = utils.system_output('ps -p %s -o args=' % p,
|
/external/autotest/client/site_tests/hardware_TPMCheck/ |
D | hardware_TPMCheck.py | 38 return not utils.system_output(cmd, ignore_status=True).strip() 48 return utils.system_output(cmd, ignore_status=True).strip() 86 output = utils.system_output(cmd, ignore_status=True).strip()
|
/external/autotest/client/site_tests/platform_InputScreenshot/ |
D | platform_InputScreenshot.py | 38 utils.system_output('rm -f %s/%s %s/%s' %(self._TMP, self._SCREENSHOT, 53 if not (utils.system_output('sync; sleep 2; find %s -name "%s"' 57 filesize = utils.system_output('ls -l %s/%s | cut -d" " -f5'
|
/external/autotest/client/common_lib/cros/ |
D | arc.py | 79 output = utils.system_output('adb get-state', ignore_status=True) 176 adb_state = utils.system_output('adb get-state', ignore_status=True) 219 return utils.system_output('adb %s' % cmd, **kwargs) 312 status = utils.system_output('status %s' % job_name) 343 return utils.system_output('pgrep -P %s' % job_pid) 366 return utils.system_output('pgrep -f -u root ^/usr/bin/arc-obb-mounter') 486 return utils.system_output('android-sh -c {}'.format(pipes.quote(cmd)), 912 utils.system_output('rm -f %s' % 916 utils.system_output('adb kill-server')
|
/external/autotest/client/site_tests/firmware_VbootCrypto/ |
D | firmware_VbootCrypto.py | 86 self.results = utils.system_output(sha_benchmark_cmd, 94 self.results = utils.system_output(rsa_benchmark_cmd, 104 self.results = utils.system_output(firmware_benchmark_cmd, 107 self.results = utils.system_output(kernel_benchmark_cmd,
|
/external/autotest/client/site_tests/kernel_HdParm/ |
D | kernel_HdParm.py | 23 result = utils.system_output('hdparm -T %s' % disk) 26 result = utils.system_output('hdparm -t %s' % disk)
|
/external/autotest/client/site_tests/security_SeccompSyscallFilters/ |
D | security_SeccompSyscallFilters.py | 37 utils.system_output(binpath, retain_output = True) 38 utils.system_output("su chronos -c %s" % binpath, retain_output = True)
|