forked from idaholab/blackbear
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update run_tests for python 3 (refs #000)
- Loading branch information
1 parent
8bd9831
commit b768b71
Showing
1 changed file
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
#!/usr/bin/env python | ||
import sys, os | ||
|
||
# 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 = 'blackbear' | ||
|
||
MOOSE_DIR = os.path.abspath(os.path.join('..', 'moose')) | ||
#### See if a submodule is available | ||
MOOSE_DIR = os.path.abspath(os.environ.get('MOOSE_DIR', os.path.join(os.path.dirname(__file__), '..', 'moose'))) | ||
if os.path.exists(os.path.abspath(os.path.join('moose', 'framework', 'Makefile'))): | ||
MOOSE_DIR = os.path.abspath('moose') | ||
#### See if MOOSE_DIR is already in the environment instead | ||
if os.environ.has_key("MOOSE_DIR"): | ||
MOOSE_DIR = os.environ['MOOSE_DIR'] | ||
MOOSE_DIR = os.environ.get('MOOSE_DIR', MOOSE_DIR) | ||
|
||
sys.path.append(os.path.join(MOOSE_DIR, 'python')) | ||
|
||
from TestHarness import TestHarness | ||
# Run the tests! | ||
TestHarness.buildAndRun(sys.argv, app_name, MOOSE_DIR) | ||
TestHarness.buildAndRun(sys.argv, 'blackbear', MOOSE_DIR) |