Commit e67b73de authored by Daniel Brown's avatar Daniel Brown
Browse files

changing exception case

parent 50751aa2
......@@ -44,38 +44,38 @@ def run_kat_file(item):
else:
exp = None
try:
start = time.time()
out,err = utils.runcmd([FINESSE_EXE, "--noheader", kat], cwd=SUITE_PATH)
OUT_FILE = os.path.join(SUITE_PATH,basename + ".out")
LOG_FILE = os.path.join(SUITE_PATH,basename + ".log")
f_in = open(LOG_FILE, 'rb')
f_out = gzip.open(LOG_FILE + ".gz", 'wb')
f_out.writelines(f_in)
f_out.close()
f_in.close()
shutil.move(OUT_FILE, SUITE_OUTPUT_DIR)
shutil.move(LOG_FILE + ".gz", SUITE_OUTPUT_DIR)
except utils.RunException as e:
#try:
start = time.time()
out,err = utils.runcmd([FINESSE_EXE, "--noheader", kat], cwd=SUITE_PATH)
OUT_FILE = os.path.join(SUITE_PATH,basename + ".out")
LOG_FILE = os.path.join(SUITE_PATH,basename + ".log")
f_in = open(LOG_FILE, 'rb')
f_out = gzip.open(LOG_FILE + ".gz", 'wb')
f_out.writelines(f_in)
f_out.close()
f_in.close()
print "STDERR: " + e.out
print "STDOUT: " + e.err
shutil.move(OUT_FILE, SUITE_OUTPUT_DIR)
shutil.move(LOG_FILE + ".gz", SUITE_OUTPUT_DIR)
print "Error running " + kat
#except utils.RunException as e:
#
# print "STDERR: " + e.out
# print "STDOUT: " + e.err
#
# print "Error running " + kat
exp = e
finally:
# exp = e
#finally:
done_kats.value += 1
return [time.time()-start, suite, kat, exp]
# return [time.time()-start, suite, kat, exp]
except Exception as e:
print "main error in kat call",e
return [0,suite,kat,NULL]
return [0,suite,kat,e]
class DiffException(Exception):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment