206
199
self.log('$ ' + ' '.join(cmd))
207
200
actual_retcode = call(cmd, stdout=self.TEST_LOG, stderr=self.TEST_LOG)
209
201
if retcode != actual_retcode:
210
202
raise CommandFailed("test failed: %r returned %d, expected %d"
211
203
% (cmd, actual_retcode, retcode))
214
205
def backtick(self, cmd, retcode=0):
215
206
"""Run a command and return its output"""