Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Restore run_tests.sh #785

Merged
merged 2 commits into from
Apr 9, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def collect_list(option, opt_str, value, parser):
setattr(parser.values, option.dest, value)


parser = OptionParser(usage="%prog [options]\n\nRun Grok Engine tests.")
parser = OptionParser(usage="%prog [options]\n\nRun NuPIC Python tests.")
parser.add_option(
"-a",
"--all",
Expand Down Expand Up @@ -133,7 +133,7 @@ def collect_list(option, opt_str, value, parser):
def main(parser, parse_args):
""" Parse CLI options and execute tests """

# Default to success, failures will flip it.
# Default to success, failures will flip it.
exitStatus = 0

# Extensions to test spec (args not part of official test runner)
Expand Down Expand Up @@ -252,8 +252,8 @@ def main(parser, parse_args):
# Tests need to run from $NUPIC, so let's change there and at the end back to actual_dir
actual_dir=os.getcwd()
os.chdir(os.getenv('NUPIC'))

result = main(parser, sys.argv[1:])

os.chdir(actual_dir)
sys.exit(result)
4 changes: 4 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
pushd $NUPIC > /dev/null
python ./bin/run_tests.py $@ || exit
popd > /dev/null