[gegl] tests/compositions: Print exception if VERBOSE
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests/compositions: Print exception if VERBOSE
- Date: Sun, 9 Nov 2014 21:10:34 +0000 (UTC)
commit e313675c1405c99ac9ddb1821c2c242a073f4050
Author: Jon Nordby <jononor gmail com>
Date: Sun Nov 9 21:50:18 2014 +0100
tests/compositions: Print exception if VERBOSE
tests/compositions/run-compositions.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/compositions/run-compositions.py b/tests/compositions/run-compositions.py
index 7a0ac77..de96552 100755
--- a/tests/compositions/run-compositions.py
+++ b/tests/compositions/run-compositions.py
@@ -124,7 +124,9 @@ class Context():
subprocess.check_call([self.img_cmp_bin, ref_image_path, out_image_path], env=img_cmp_env)
except KeyboardInterrupt:
raise
- except subprocess.CalledProcessError:
+ except subprocess.CalledProcessError, e:
+ if VERBOSE:
+ print (e)
print (FAIL_STR, result_name_str)
self.fail_count += 1
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]