https://github.com/idaholab/moose
Tip revision: 7bc3c073f740c1d16ae6cb786f90607ec3baea25 authored by moosebuild on 18 May 2016, 20:45:24 UTC
Merge commit '52095a214f20f3cf35300e9902646d3b127ede37'
Merge commit '52095a214f20f3cf35300e9902646d3b127ede37'
Tip revision: 7bc3c07
run_tests
#!/usr/bin/env python
import sys, os, inspect
# Set the current working directory to the directory where this script is located
os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))
#### Set the name of the application here and moose directory relative to the application
app_name = 'combined/modules'
MODULE_DIR = os.path.abspath('.')
MOOSE_DIR = os.path.abspath(os.path.join(MODULE_DIR, '..'))
#### See if MOOSE_DIR is already in the environment instead
if os.environ.has_key("MOOSE_DIR"):
MOOSE_DIR = os.environ['MOOSE_DIR']
sys.path.append(os.path.join(MOOSE_DIR, 'python'))
import path_tool
path_tool.activate_module('TestHarness')
# Append error flag when running tests
sys.argv.insert(1, "--error")
from TestHarness import TestHarness
# Run the tests!
TestHarness.buildAndRun(sys.argv, app_name, MOOSE_DIR)