1 |
commit: e7233ec6f81bf3ec2fd77303c0bef67252c6494c |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 19:42:36 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 19:42:36 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=e7233ec6 |
7 |
|
8 |
grs/Execute.py: suppress logging rc = 0. |
9 |
|
10 |
grs/Execute.py | 3 ++- |
11 |
1 file changed, 2 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/grs/Execute.py b/grs/Execute.py |
14 |
index 7b0e5a2..87667be 100644 |
15 |
--- a/grs/Execute.py |
16 |
+++ b/grs/Execute.py |
17 |
@@ -65,7 +65,8 @@ class Execute(): |
18 |
if not timed_out: |
19 |
# _rc = None if we had a timeout |
20 |
_rc = proc.returncode |
21 |
- _file.write('EXIT CODE: %d\n' % _rc) |
22 |
+ if _rc != 0: |
23 |
+ _file.write('EXIT CODE: %d\n' % _rc) |
24 |
|
25 |
if timed_out: |
26 |
_file.write('TIMEOUT ERROR: %s\n' % cmd) |