mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Maybe this will get my output
This commit is contained in:
parent
e0a65de46e
commit
b2ee7da86c
1 changed files with 4 additions and 5 deletions
|
|
@ -9,7 +9,6 @@ import re
|
|||
import glob
|
||||
import socket
|
||||
from subprocess import call, check_output
|
||||
import subprocess
|
||||
from collections import OrderedDict
|
||||
from optparse import OptionParser
|
||||
|
||||
|
|
@ -231,10 +230,7 @@ class Test(object):
|
|||
make_list.append(options.n_procs)
|
||||
|
||||
# Run make
|
||||
# rc = call(make_list)
|
||||
rc = check_output(make_list, stderr=subprocess.STDOUT)
|
||||
print(rc)
|
||||
rc = 0
|
||||
rc = call(make_list)
|
||||
if rc != 0:
|
||||
self.success = False
|
||||
self.msg = 'Failed on make.'
|
||||
|
|
@ -471,6 +467,9 @@ for key in iter(tests):
|
|||
logfilename = os.path.splitext(logfilename)[0]
|
||||
logfilename = logfilename + '_{0}.log'.format(test.name)
|
||||
shutil.copy(logfile[0], logfilename)
|
||||
f = open(logfilename, 'r')
|
||||
for line in f:
|
||||
print(line)
|
||||
|
||||
# For coverage builds, use lcov to generate HTML output
|
||||
if test.coverage:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue