Lines Matching refs:ret
138 ret = rh.utils.run(['true'])
139 self.assertEqual('true', ret.cmdstr)
140 self.assertIsNone(ret.stdout)
141 self.assertIsNone(ret.stderr)
145 ret = rh.utils.run(['echo', 'hi'], redirect_stdout=True)
146 self.assertEqual('hi\n', ret.stdout)
147 self.assertIsNone(ret.stderr)
151 ret = rh.utils.run(['sh', '-c', 'echo hi >&2'], redirect_stderr=True)
152 self.assertIsNone(ret.stdout)
153 self.assertEqual('hi\n', ret.stderr)
157 ret = rh.utils.run(['printf', r'\xc3\x9f'], redirect_stdout=True)
158 self.assertEqual(u'ß', ret.stdout)
159 self.assertIsNone(ret.stderr)
163 ret = rh.utils.run(['cat'], redirect_stdout=True, input=u'ß')
164 self.assertEqual(u'ß', ret.stdout)
165 self.assertIsNone(ret.stderr)