test_autopkgtest.py: Simplify showing britney output

Show britney output if $SHOW_OUTPUT is set in the environment. This avoids
having to modify the source and reverting it before committing.
bzr-import-20160707
Martin Pitt 10 years ago
parent 967dc07c21
commit 7a3a6d7309

@ -90,9 +90,8 @@ echo "$@" >> /%s/adt-britney.log ''' % self.data.path)
self.swift.stop()
#print('-------\nexcuses: %s\n-----' % excuses)
#print('-------\nout: %s\n-----' % out)
#print('run:\n%s -c %s\n' % (self.britney, self.britney_conf))
#subprocess.call(['bash', '-i'], cwd=self.data.path)
if 'SHOW_OUTPUT' in os.environ:
print('-------\nout: %s\n-----' % out)
if considered:
self.assertIn('Valid candidate', excuses)
else:

Loading…
Cancel
Save