def main(): test_utils.prepare() test_utils.start_solr() try: unittest.main(module='tests', verbosity=1) finally: print('Tests complete; halting Solr servers…') test_utils.stop_solr()
def main(): if os.environ.has_key("PYSOLR_STARTER"): test_utils.set_script(os.environ["PYSOLR_STARTER"]) else: test_utils.set_script("./start-solr-test-server.sh") test_utils.prepare() test_utils.start_solr() try: unittest.main(module='tests', verbosity=1) finally: print('Tests complete; halting Solr servers…') test_utils.stop_solr()
def main(): faulthandler.register(signal.SIGUSR1, all_threads=True) print( "Installed SIGUSR1 handler to print stack traces: pkill -USR1 -f run-tests" ) test_utils.prepare() test_utils.start_solr() try: unittest.main(module="tests", verbosity=1) finally: print("Tests complete; halting Solr servers…") test_utils.stop_solr()
def main(): try: import faulthandler faulthandler.register(signal.SIGUSR1, all_threads=True) print('Installed SIGUSR1 handler to print stack traces: pkill -USR1 -f run-tests') except ImportError: pass test_utils.prepare() test_utils.start_solr() try: unittest.main(module='tests', verbosity=1) finally: print('Tests complete; halting Solr servers…') test_utils.stop_solr()
def main(): try: import faulthandler faulthandler.register(signal.SIGUSR1, all_threads=True) print( 'Installed SIGUSR1 handler to print stack traces: pkill -USR1 -f run-tests' ) except ImportError: pass test_utils.prepare() test_utils.start_solr() try: unittest.main(module='tests', verbosity=1) finally: print('Tests complete; halting Solr servers…') test_utils.stop_solr()