Lines Matching refs:strip
46 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
63 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
140 self.assertEqual('', msg.strip(),
163 self.assertEqual('', msg.strip())
177 self.assertEqual('', msg.strip(),
192 self.assertEqual('', msg.strip())
196 self.assertEqual('', msg.strip(),
211 self.assertEqual('', msg.strip())
297 out = self.device.shell(['cat', '/proc/uptime'])[0].strip()
435 remote_pid = sleep_proc.stdout.readline().strip()
486 result = self.device.shell(shlex.split("'true && echo t'"))[0].strip()
489 shlex.split("sh -c 'true && echo t'"))[0].strip()
493 result = self.device.shell(shlex.split('FOO=a BAR=b echo t'))[0].strip()
496 shlex.split(r'echo -n 123\;uname'))[0].strip()
523 self.assertEqual('root', self.device.shell(['id', '-un'])[0].strip())
528 self.assertEqual('shell', self.device.shell(['id', '-un'])[0].strip())
535 original_user = self.device.shell(['id', '-un'])[0].strip()
574 self.device.shell(['getprop', prop_name])[0].strip(), 'qux')
1071 ['ls', '/data/local/tmp/adb-test-*'])[0].strip()