Skip to content

Commit

Permalink
just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Jan 16, 2015
1 parent cd140b5 commit 4bc3115
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/rununittests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from __future__ import print_function
from __future__ import unicode_literals
from io import open
from glob import glob
import sys
import os
Expand All @@ -19,7 +21,11 @@ def run( self, options ):
else:
cmd = []
cmd.extend( [self.test_exe_path, '--test-auto'] + options )
process = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT )
try:
process = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT )
except:
print(cmd)
raise
stdout = process.communicate()[0]
if process.returncode:
return False, stdout
Expand Down

0 comments on commit 4bc3115

Please sign in to comment.