Home
last modified time | relevance | path

Searched refs:strip (Results 1 – 25 of 78) sorted by relevance

1234

/test/vts-testcase/vndk/
Dutils.py73 if err.strip() or return_code != 0:
76 return out.strip()
166 if line.strip().startswith(line_prefix):
168 return line.strip()[len(line_prefix):]
195 if err.strip() or return_code != 0:
197 return "uid=0(root)" in out.strip()
202 if out.strip() or err.strip():
218 if return_code != 0 or err.strip():
221 return out.strip()
247 if return_code != 0 or err.strip():
[all …]
/test/vts-testcase/hal/treble/platform_version/
Dvts_treble_platform_version_test.py41 self.assertTrue(len(out.strip()) > 0,
45 len(out.strip()) == 0):
49 result = out.strip()
60 len(out.strip()) == 0):
64 result = out.strip()
DVtsTreblePlatformVersionTest.py41 asserts.assertTrue(len(results[const.STDOUT][0].strip()) > 0,
45 len(results[const.STDOUT][0].strip()) == 0):
49 result = results[const.STDOUT][0].strip()
60 len(results[const.STDOUT][0].strip()) == 0):
64 result = results[const.STDOUT][0].strip()
/test/vts/utils/python/common/
Dlist_utils.py40 strip=False, argument
61 do_strip = lambda s: s.strip() if strip else s
212 lines = map(lambda line: line.strip(), lines)
215 lines = filter(lambda line: not line.strip().startswith(comment_char),
/test/vts/testcases/host/shell/
DSampleShellTest.py41 asserts.assertEqual(results[const.STDOUT][0].strip(), "/system/bin/ls")
52 asserts.assertEqual(results[const.STDOUT][index].strip(),
63 asserts.assertEqual(results[const.STDOUT][0].strip(),
78 asserts.assertEqual(results[const.STDOUT][0].strip(), directory)
90 asserts.assertEqual(results[const.STDOUT][0].strip(), var_value)
111 asserts.assertEqual(results[const.STDOUT][0].strip(),
/test/vts/tools/build/utils/
Dvts_package_utils.mk22 $(eval _built_files := $(strip $(ALL_MODULES.$(m).BUILT_INSTALLED)\
24 $(eval _module_class_folder := $($(strip MODULE_CLASS_$(word 1, $(strip $(ALL_MODULES.$(m).CLASS)\
48 $(eval _built_files := $(strip $(ALL_MODULES.$(m).BUILT_INSTALLED)\
74 $(strip \
/test/vts-testcase/kernel/ltp/testcase/tools/
Dltp_test_cases.py65 item.strip()
123 line = line.strip()
141 cmd = cmd.strip()
272 lines_gen = (line.strip() for line in f)
291 line = line.strip()
301 [testsuite, testname_modified, line[len(testname):].strip()]))
/test/vts/testcases/codelab/hello_world/
DVtsCodelabHelloWorldTest.py38 asserts.assertEqual(results[const.STDOUT][0].strip(),
49 asserts.assertEqual(results[const.STDOUT][0].strip(), "hello")
50 asserts.assertEqual(results[const.STDOUT][1].strip(), "world")
/test/framework/harnesses/host_controller/utils/usb/
Dusb_utils.py54 device_serial = serial.split("=")[1].strip().strip("'")
55 ret[device_serial] = os.path.join("/dev", devname.strip())
/test/vts/testcases/template/gtest_binary_test/
Dgtest_binary_test.py117 if not len(line.strip()):
120 test_name = line.split('#')[0].strip()
131 test_suite = line.strip()
179 if stderr and stderr.strip():
201 if stdout and stdout.strip():
226 xml_str = xml_str.strip()
/test/vts/utils/python/coverage/
Dsancov_utils.py106 serial = dut.adb.shell('getprop ro.serialno').strip()
115 pid.strip()
126 name.strip() for name in processes
127 if name.strip() and not name.endswith(' (deleted)')
152 serial = dut.adb.shell('getprop ro.serialno').strip()
286 serial = dut.adb.shell('getprop ro.serialno').strip()
287 product = dut.adb.shell('getprop ro.build.product').strip()
/test/vts/testcases/host/shell_binary_crash_test/
DShellBinaryCrashTest.py45 asserts.assertEqual(results[const.STDOUT][1].strip(), "")
60 asserts.assertEqual(results[const.STDOUT][1].strip(), "")
79 asserts.assertEqual(results[const.STDOUT][0].strip(),
/test/vts-testcase/kernel/ltp/
Dtest_cases_parser.py61 item.strip()
176 lines_gen = (line.strip() for line in f)
195 line = line.strip()
205 [testsuite, testname_modified, line[len(testname):].strip()]))
/test/vts/testcases/host/kernel_proc_file_api_test/
Dproc_utils.py83 if r_code != 0 or err.strip():
86 return out.strip()
151 if r_code != 0 or err.strip():
/test/vts/testcases/vts_selftest/test_framework/base_test/
DVtsSelfTestBaseTest.py81 asserts.assertEqual(results[const.STDOUT][0].strip(),
89 asserts.assertEqual(results[const.STDOUT][0].strip(), 'hello')
90 asserts.assertEqual(results[const.STDOUT][1].strip(), 'world')
/test/vts/utils/python/controllers/
Dandroid_device.py166 clean_lines = str(device_list_str, 'utf-8').strip().split('\n')
169 tokens = line.strip().split('\t')
457 out = self.fastboot.getvar(_FASTBOOT_VAR_HAS_VBMETA).strip()
472 out = self.fastboot.getvar("is-userspace").strip()
480 id_str = self.adb.shell("id -un").strip().decode("utf-8")
500 out = self.fastboot.getvar("product").strip()
578 out = out.strip()
647 value_unit = out.split(':')[-1].strip().split(' ')
699 return response.strip()
735 if line.strip().startswith(line_prefix):
[all …]
/test/framework/harnesses/host_controller/utils/gcp/
Dgcs_utils.py34 return sh_stdout.strip()
84 return stdout.strip("\n").split("\n") if ret_code == 0 else []
/test/framework/build/utils/
Dvtslab_package_utils.mk22 $(eval _built_files := $(strip $(ALL_MODULES.$(m).BUILT_INSTALLED)\
40 $(eval _built_files := $(strip $(ALL_MODULES.$(m).BUILT_INSTALLED)\
/test/vts/utils/python/gcs/
Dgcs_utils.py71 return sh_stdout.strip()
83 return sh_stdout.strip()
/test/vts-testcase/vndk/golden/
Ddump_abi.py44 return stdout.strip()
62 return [line.split("=", 1)[1].strip("'") for line in stdout.splitlines()]
87 lib_name = line[tag_len:].strip()
/test/framework/harnesses/host_controller/command_processor/
Dcommand_device.py87 if (len(line.strip()) and not (line.startswith("* ")
124 if len(line.strip()):
156 device["product"] = res.split(":")[1].strip()
159 device["product"] = res.split(":")[1].strip()
/test/vts/testcases/host/fastboot/
DVtsFastbootVerification.py79 out = self.dut.fastboot.getvar("super-partition-name").strip()
105 cpu_abi = first_line[len("cpu-abi: "):].strip()
/test/mlts/benchmark/jni/
DAndroid.bp41 strip: {
87 strip: {
/test/vti/test_serving/configs/global/
DAndroid.mk20 dirs := $(strip \
36 dirs := $(strip \
/test/vts/utils/python/file/
Dtarget_file_utils.py95 return filter(None, stdout.strip().split("\n"))
143 accessBits = results[const.STDOUT][0].strip()

1234