def main(sdk_path, test_path):
    # If the sdk path points to a google cloud sdk installation
    # then we should alter it to point to the GAE platform location.
    if os.path.exists(os.path.join(sdk_path, 'platform/google_appengine')):
      sys.path.insert(0, os.path.join(sdk_path, 'platform/google_appengine'))
    else:
      sys.path.insert(0, sdk_path)

    # Ensure that the google.appengine.* packages are available
    # in tests as well as all bundled third-party packages.
    import dev_appserver
    dev_appserver.fix_sys_path()

    # Loading appengine_config from the current project ensures that any
    # changes to configuration there are available to all tests (e.g.
    # sys.path modifications, namespaces, etc.)
    try:
      import appengine_config
      (appengine_config)
    except __HOLE__:
      print "Note: unable to import appengine_config."

    # Discover and run tests.
    suite = unittest.loader.TestLoader().discover(test_path)
    result = unittest.TextTestRunner(verbosity=2).run(suite)

    # Fail the build if the suite was not successful!
    if not result.wasSuccessful():
        sys.exit(result)
dataset/ETHPy150Open russomi/appengine-python-flask-travis-ci/testrunner.py/main