Lines Matching refs:strip
47 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
64 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root'
141 self.assertEqual('', msg.strip(),
164 self.assertEqual('', msg.strip())
178 self.assertEqual('', msg.strip(),
193 self.assertEqual('', msg.strip())
196 self.assertEqual('', self.device.forward_list().strip(),
202 port = self.device.forward('tcp:0', 'tcp:8888').strip()
213 self.assertEqual('', msg.strip(),
228 self.assertEqual('', msg.strip())
231 self.assertEqual('', self.device.reverse_list().strip(),
237 port = self.device.reverse('tcp:0', 'tcp:8888').strip()
330 out = self.device.shell(['cat', '/proc/uptime'])[0].strip()
479 remote_pid = sleep_proc.stdout.readline().strip()
528 script = ";".join([x.strip() for x in script.strip().splitlines()])
543 self.assertEqual(stdout.strip(), "SIGHUP")
565 result = self.device.shell(shlex.split("'true && echo t'"))[0].strip()
568 shlex.split("sh -c 'true && echo t'"))[0].strip()
572 result = self.device.shell(shlex.split('FOO=a BAR=b echo t'))[0].strip()
575 shlex.split(r'echo -n 123\;uname'))[0].strip()
602 self.assertEqual('root', self.device.shell(['id', '-un'])[0].strip())
607 self.assertEqual('shell', self.device.shell(['id', '-un'])[0].strip())
614 original_user = self.device.shell(['id', '-un'])[0].strip()
653 self.device.shell(['getprop', prop_name])[0].strip(), 'qux')
831 self.assertEqual(out.strip(), 'foo')
1181 ['ls', '/data/local/tmp/adb-test-*'])[0].strip()