228
229
If a single string is based, it is split into words.
229
230
For commands that are not simple space-separated words, please
238
233
self.log('$ ' + ' '.join(cmd))
240
236
if retcode != actual_retcode:
241
237
raise CommandFailed("test failed: %r returned %d, expected %d"
242
238
% (cmd, actual_retcode, retcode))
244
240
def backtick(self, cmd, retcode=0):
245
241
"""Run a command and return its output"""
255
244
outd, errd = child.communicate()
257
246
actual_retcode = child.wait()