def main():
    "Runs all non-blacklisted tests against Chromium field trials.\n\n  This script run all chrome proxy integration tests that haven't been\n  blacklisted against the field trial testing configuration used by Chromium\n  perf bots.\n  "
    flags = common.ParseFlags()
    experiment_args = ' '.join(GetExperimentArgs())
    common.ParseFlags = ParseFlagsWithExtraBrowserArgs(experiment_args)
    for (test_suite, test_id) in GenerateTestSuites():
        buf = io.BytesIO()
        sys.stdout.write(('%s... ' % test_id))
        sys.stdout.flush()
        testRunner = unittest.runner.TextTestRunner(stream=buf, verbosity=2, buffer=(not flags.disable_buffer))
        result = testRunner.run(test_suite)
        if result.wasSuccessful():
            print('ok')
        else:
            print('failed')
            print(buf.getvalue())
            print('To repeat this test, run: ')
            print(("%s %s %s --test_filter=%s --browser_args='%s'" % (sys.executable, os.path.join(os.path.dirname(__file__), 'run_all_tests.py'), ' '.join(sys.argv[1:]), '.'.join(test_id.split('.')[1:]), experiment_args)))
            if flags.failfast:
                return
Runs all non-blacklisted tests against Chromium field trials.

This script run all chrome proxy integration tests that haven't been
blacklisted against the field trial testing configuration used by Chromium
perf bots.
def main():
    "Runs all non-blacklisted tests against Chromium field trials.\n\n  This script run all chrome proxy integration tests that haven't been\n  blacklisted against the field trial testing configuration used by Chromium\n  perf bots.\n  "
    flags = common.ParseFlags()
    experiment_args = ' '.join(GetExperimentArgs())
    common.ParseFlags = ParseFlagsWithExtraBrowserArgs(experiment_args)
    for (test_suite, test_id) in GenerateTestSuites():
        buf = io.BytesIO()
        sys.stdout.write(('%s... ' % test_id))
        sys.stdout.flush()
        testRunner = unittest.runner.TextTestRunner(stream=buf, verbosity=2, buffer=(not flags.disable_buffer))
        result = testRunner.run(test_suite)
        if result.wasSuccessful():
            print('ok')
        else:
            print('failed')
            print(buf.getvalue())
            print('To repeat this test, run: ')
            print(("%s %s %s --test_filter=%s --browser_args='%s'" % (sys.executable, os.path.join(os.path.dirname(__file__), 'run_all_tests.py'), ' '.join(sys.argv[1:]), '.'.join(test_id.split('.')[1:]), experiment_args)))
            if flags.failfast:
                return