Home
last modified time | relevance | path

Searched refs:system_output (Results 1 – 25 of 177) sorted by relevance

12345678

/external/autotest/client/bin/
Dpackage.py33 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 …]
Dpackage_unittest.py26 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 …]
Dutils.py66 run_cmd = utils.system_output
191 vmlinux = '/boot/vmlinux-%s' % utils.system_output('uname -r')
194 vmlinux = '/lib/modules/%s/build/vmlinux' % utils.system_output('uname -r')
205 map = '/boot/System.map-%s' % utils.system_output('uname -r')
208 map = '/lib/modules/%s/build/System.map' % utils.system_output('uname -r')
216 kernel_version = utils.system_output('uname -r')
392 file_data = utils.system_output('file -L ' + filename)
441 return utils.system_output(cmd).splitlines()
446 meminfo = utils.system_output('grep %s /proc/meminfo' % key)
643 version = utils.system_output('uname -r')
[all …]
Dfsinfo.py120 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)
Dpartition.py61 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/
Dnet_utils_unittest.py192 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/
Dkernel_fs_Punybench.py35 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/
Dnetwork_DhcpRequestHostName.py27 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/
Dsoftware_manager.py242 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/
Dsecurity_SysVIPC.py26 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/power/
Dpower_utils.py103 utils.system_output(command)
134 psu = utils.system_output('mosys psu type')
174 psu = utils.system_output('mosys -vvvv psu type',
288 result = utils.system_output(cmd, ignore_status=True).strip()
302 level = float(utils.system_output(cmd).rstrip())
330 return utils.system_output(cmd).rstrip()
433 utils.system_output(cmd).rstrip())
446 return float(utils.system_output(cmd).strip())
617 self._mch_bar = int(utils.system_output(cmd), 16) & 0xfffffffe
625 self._dmi_bar = int(utils.system_output(cmd), 16) & 0xfffffffe
[all …]
/external/autotest/client/site_tests/platform_MetricsUploader/
Dplatform_MetricsUploader.py102 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/cros/
Dupstart.py34 return utils.system_output('status %s' % service_name).find('start/running') != -1
45 utils.system_output('restart %s' % service_name)
47 utils.system_output('start %s' % service_name)
Dverity_utils.py71 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/kernel_TPMPing/
Dkernel_TPMPing.py14 tpm_version = utils.system_output("tpm_version")
21 version = utils.system_output('/bin/uname -r').strip()
28 result = utils.system_output('awk \'/Linux version [0-9]+\./ '
/external/autotest/client/site_tests/network_EthCaps/
Dnetwork_EthCaps.py39 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/site_tests/security_RootCA/
Dsecurity_RootCA.py76 ret = utils.system_output(NSSMODUTIL + ' -list '
81 all_certs = utils.system_output(NSSCERTUTIL +
88 cert_dump = utils.system_output(NSSCERTUTIL +
106 f, i = utils.system_output(fingerprint_cmd % certfile,
136 utils.system_output("ls -lH %s" % certfile))
/external/autotest/client/site_tests/power_Draw/
Dpower_Draw.py24 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/
Dbtreplay.py58 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/
Dlogin_LogoutProcessCleanup.py25 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/
Dhardware_TPMCheck.py38 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/
Dplatform_InputScreenshot.py38 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/site_tests/firmware_VbootCrypto/
Dfirmware_VbootCrypto.py86 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/security_RootfsStatefulSymlinks/
Dsecurity_RootfsStatefulSymlinks.py41 logging.error(utils.system_output("ls -ald '%s'" % destination))
81 cmd_output = utils.system_output(cmd, ignore_status=True)
88 logging.error(utils.system_output("ls -ald '%s'" % link))
/external/autotest/client/site_tests/kernel_HdParm/
Dkernel_HdParm.py23 result = utils.system_output('hdparm -T %s' % disk)
26 result = utils.system_output('hdparm -t %s' % disk)

12345678