From 7a3a6d73092a237a705493a4cc3190a4617d55ea Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 15 Jul 2015 09:49:26 +0200 Subject: [PATCH] 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. --- tests/test_autopkgtest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_autopkgtest.py b/tests/test_autopkgtest.py index 232aa07..e581c0f 100644 --- a/tests/test_autopkgtest.py +++ b/tests/test_autopkgtest.py @@ -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: