Skip to content

Commit

Permalink
cleanup test script
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdyer committed Jun 6, 2014
1 parent 8773b2a commit b4976d5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bin/test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python

import os
import sys
Expand Down Expand Up @@ -26,14 +26,14 @@ def doTest(bin_dir, regex_file):
print regex_file, "*** FAIL"
sys.exit(1)

def main():
bin_dir = os.path.abspath(os.path.dirname(__file__))
test_dir = os.path.join(bin_dir, '..', 'tests')
test_files_mask = os.path.join(test_dir, '*.regex')
test_files_mask = os.path.realpath(test_files_mask)

bin_dir = os.path.abspath(os.path.dirname(__file__))
test_dir = os.path.join(bin_dir, '..', 'tests')
test_files_mask = os.path.join(test_dir, '*.regex')
test_files_mask = os.path.realpath(test_files_mask)
test_files = glob.glob(test_files_mask)
for test_file in test_files:
doTest(bin_dir, test_file)

test_files = glob.glob(test_files_mask)
for test_file in test_files:
doTest(bin_dir, test_file)

sys.exit(0)
sys.exit(0)

0 comments on commit b4976d5

Please sign in to comment.