diff --git a/ellipsyswrapper/testsuite.py b/ellipsyswrapper/testsuite.py index 3dbcd31b5e5edab87681b1d7cbfacaaf454dfafa..bbe9c60b3e4b582cfd37d2dd2f86ddd8f32ec22d 100644 --- a/ellipsyswrapper/testsuite.py +++ b/ellipsyswrapper/testsuite.py @@ -172,9 +172,12 @@ class CaseRunner(object): t0 = time.time() exepath = os.path.join(epath, self.flowfield) command = 'mpirun -np %i python %s' % (self.nprocs, exepath) - out = commands.getoutput(command) - if self.debug: - print 'out', out + # out = commands.getoutput(command) + status = subprocess.call(command, shell=True) + if status != 0: + raise RuntimeError('Case %s failed!' % self.casename) + # if self.debug: + # print 'out', out self.read_data(self.project, outname) self.jobid = None print 'case %s ran in %f seconds' %(self.casename, time.time() - t0) @@ -182,11 +185,12 @@ class CaseRunner(object): t0 = time.time() exepath = os.path.join(epath, self.flowfield) command = 'mpirun -np %i %s' % (self.nprocs, exepath) - status, out = commands.getstatusoutput(command) + status = subprocess.call(command, shell=True) + # status, out = commands.getstatusoutput(command) if status != 0: - raise RuntimeError(out) - elif self.debug: - print out + raise RuntimeError('Case %s failed!' % self.casename) + # elif self.debug: + # print out self.read_data(self.project, outname) self.jobid = None print 'case %s ran in %f seconds' %(self.casename, time.time() - t0)