<s> import optparse <EOL> import os <EOL> import sys <EOL> import unittest <EOL> import logging <EOL> USAGE = """<STR_LIT>""" <EOL> def main ( sdk_path , test_path ) : <EOL> sys . path . insert ( <NUM_LIT:0> , sdk_path ) <EOL> import dev_appserver <EOL> dev_appserver . fix_sys_path ( ) <EOL> project_dir = os . path . dirname ( os . path . dirname ( __file__ ) ) <EOL> suite = unittest . loader . TestLoader ( ) . discover ( test_path , <EOL> top_level_dir = project_dir ) <EOL> unittest . TextTestRunner ( verbosity = <NUM_LIT:2> ) . run ( suite ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> parser = optparse . OptionParser ( USAGE ) <EOL> options , args = parser . parse_args ( ) <EOL> if len ( args ) != <NUM_LIT:2> : <EOL> print '<STR_LIT>' <EOL> parser . print_help ( ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> sdk_path = args [ <NUM_LIT:0> ] <EOL> test_path = args [ <NUM_LIT:1> ] <EOL> logging . getLogger ( ) . setLevel ( logging . ERROR ) <EOL> main ( sdk_path , test_path ) </s>
