Skip to content

Commit

Permalink
update run_tests for python3 update (refs #000)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeslaughter committed Oct 24, 2019
1 parent de72f55 commit 7a62338
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions run_tests
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
#!/usr/bin/env python
import sys, os, inspect
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 = 'falcon'

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'))
import path_tool
path_tool.activate_module('TestHarness')

from TestHarness import TestHarness
# Run the tests!
TestHarness.buildAndRun(sys.argv, app_name, MOOSE_DIR)
TestHarness.buildAndRun(sys.argv, 'falcon', MOOSE_DIR)

0 comments on commit 7a62338

Please sign in to comment.