Fix previous commit.

This commit is contained in:
Paul Romano 2013-09-02 18:57:49 -04:00
parent 71296f4dd3
commit d9dd03dcb7

View file

@ -66,15 +66,14 @@ pwd = os.getcwd()
sys.path.append(pwd)
# Set list of tests, either default or from command line
flags = []
tests = ['compile', 'gfortran', 'gfortran-dbg', 'gfortran-opt',
'gfortran-hdf5', 'gfortran-mpi', 'gfortran-phdf5',
'gfortran-petsc', 'gfortran-phdf5-petsc',
'gfortran-phdf5-petsc-opt']
if len(sys.argv) > 1:
flags = [i for i in sys.argv[1:] if i.startswith('-')]
tests = [i for i in sys.argv[1:] if not i.startswith('-')]
if not tests:
flags = []
tests = ['compile', 'gfortran', 'gfortran-dbg', 'gfortran-opt',
'gfortran-hdf5', 'gfortran-mpi', 'gfortran-phdf5',
'gfortran-petsc', 'gfortran-phdf5-petsc',
'gfortran-phdf5-petsc-opt']
# Run tests
results = []