Fix up regression execution to better handle tests that end abnormally.

E.g., mark aborts due to assertion failures as failed tests,
but those that get killed by the user as needing to be rerun, etc.
This commit is contained in:
Steve Reinhardt
2009-03-07 16:58:51 -08:00
parent 5cf0605766
commit 4f1855484c
3 changed files with 103 additions and 55 deletions

View File

@@ -29,10 +29,18 @@
import os
from os.path import isdir, isfile, join as joinpath
homedir = os.environ['HOME']
confdir = os.environ.get('M5_CONFIG', joinpath(homedir, '.m5'))
confdir = os.environ.get('M5_CONFIG')
if not confdir:
# HOME is not set when running regressions, due to use of scons
# Execute() function.
homedir = os.environ.get('HOME')
if homedir and isdir(joinpath(homedir, '.m5')):
confdir = joinpath(homedir, '.m5')
def get(name):
if not isdir(confdir):
if not confdir:
return None
conffile = joinpath(confdir, name)
if not isfile(conffile):