Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release scripts and other helper scripts
* Update to use the new git environment * Refactor naming conventions to better suit Python * Better debug messages * Colorize console output * Rename some helper scripts * Fix bug in uploading schema * Fix bug in leaving stale temporary files around
- Loading branch information
1 parent
8cefa28
commit 4fd0fcc
Showing
6 changed files
with
351 additions
and
274 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/python | ||
import re | ||
import time | ||
import sys | ||
from utils import * | ||
|
||
def main(): | ||
start_time = time.clock() | ||
disabled_test_files = [] | ||
|
||
test_annotation_matcher = re.compile('^\s*@Test') | ||
disabled_matcher = re.compile('enabled\s*=\s*false') | ||
|
||
for test_file in GlobDirectoryWalker(get_search_path(sys.argv[0]), '*Test.java'): | ||
tf = open(test_file) | ||
try: | ||
for line in tf: | ||
if test_annotation_matcher.search(line) and disabled_matcher.search(line): | ||
disabled_test_files.append(test_file) | ||
break | ||
finally: | ||
tf.close() | ||
|
||
print "Files containing disabled tests: \n" | ||
unique_tests=to_set(disabled_test_files) | ||
i = 1 | ||
for f in unique_tests: | ||
zeropad="" | ||
if i < 10 and len(unique_tests) > 9: | ||
zeropad = " " | ||
print "%s%s. %s" % (zeropad, str(i), strip_leading_dots(f)) | ||
i += 1 | ||
|
||
print "\n (finished in " + str(time.clock() - start_time) + " seconds)" | ||
|
||
if __name__ == '__main__': | ||
main() | ||
|
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
Oops, something went wrong.