chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91fb87a
)
Don't print unnecessary backtraces when testing
author
David Kågedal
<davidk@lysator.liu.se>
Fri, 17 Aug 2007 11:36:51 +0000
(13:36 +0200)
committer
Karl Hasselström
<kha@treskal.com>
Tue, 21 Aug 2007 20:58:00 +0000
(22:58 +0200)
When stg fails, and handles it properly, no backtrace should be printed,
even when running tests with -v. Getting a backtrace in the output signals
some kind of bug, but in this case there is no bug.
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/main.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/main.py
b/stgit/main.py
index 294b7035f35c5db1a6ca431c1832de3c708799be..2390110fa9153ce34ce1b8385e42db26dca79e2f 100644
(file)
--- a/
stgit/main.py
+++ b/
stgit/main.py
@@
-286,7
+286,7
@@
def main():
StackException, GitException, GitMergeException,
EditorException), err:
print >> sys.stderr, '%s %s: %s' % (prog, cmd, err)
- if debug_level:
+ if debug_level
> 0
:
raise
else:
sys.exit(2)