<commit_before>#!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

""" Run the WebKit tests. """

from build_step import BuildStep, BuildStepWarning
from utils import shell_utils
import os
import sys


class ChromeDRTCanaryRunWebkitTests(BuildStep):
  def __init__(self, timeout=16800, no_output_timeout=16800, **kwargs):
    super(ChromeDRTCanaryRunWebkitTests, self).__init__(
        timeout=timeout, no_output_timeout=no_output_timeout, **kwargs)

  def _Run(self):
    test_script_path = os.path.join('webkit', 'tools', 'layout_tests',
                                    'run_webkit_tests.sh')
    cmd = [
        test_script_path, '--build-directory', 'out', '--nocheck-sys-deps',
        '--additional-platform-directory=%s' %
            self._flavor_utils.baseline_dir,
        '--no-show-results'
    ]
    if 'new_baseline' in self._args:
      cmd.append('--new-baseline')
    if self._configuration == 'Debug':
      cmd.append('--debug')
    if 'write_results' in self._args:
      cmd.append('--results-directory=%s' % self._flavor_utils.result_dir)
    try:
      # Temporarily making this build step a no-op. Details are in
      # https://code.google.com/p/skia/issues/detail?id=2394
      # shell_utils.run(cmd)
      pass
    except Exception as e:
      # Allow this step to fail with a warning, since we expect to see a lot of
      # failures which aren't our fault. Instead, we care about the diffs.
      raise BuildStepWarning(e)


if '__main__' == __name__:
  sys.exit(BuildStep.RunBuildStep(ChromeDRTCanaryRunWebkitTests))<commit_msg>Revert of Make RunWebkitTests buildstep a no-op. (https://codereview.chromium.org/241183002/)<commit_after>#!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

""" Run the WebKit tests. """

from build_step import BuildStep, BuildStepWarning
from utils import shell_utils
import os
import sys


class ChromeDRTCanaryRunWebkitTests(BuildStep):
  def __init__(self, timeout=16800, no_output_timeout=16800, **kwargs):
    super(ChromeDRTCanaryRunWebkitTests, self).__init__(
        timeout=timeout, no_output_timeout=no_output_timeout, **kwargs)

  def _Run(self):
    test_script_path = os.path.join('webkit', 'tools', 'layout_tests',
                                    'run_webkit_tests.sh')
    cmd = [
        test_script_path, '--build-directory', 'out', '--nocheck-sys-deps',
        '--additional-platform-directory=%s' %
            self._flavor_utils.baseline_dir,
        '--no-show-results'
    ]
    if 'new_baseline' in self._args:
      cmd.append('--new-baseline')
    if self._configuration == 'Debug':
      cmd.append('--debug')
    if 'write_results' in self._args:
      cmd.append('--results-directory=%s' % self._flavor_utils.result_dir)
    try:
      shell_utils.run(cmd)
    except Exception as e:
      # Allow this step to fail with a warning, since we expect to see a lot of
      # failures which aren't our fault. Instead, we care about the diffs.
      raise BuildStepWarning(e)


if '__main__' == __name__:
  sys.exit(BuildStep.RunBuildStep(ChromeDRTCanaryRunWebkitTests))
{'fraction_non_alphanumeric': 0.11290805630428272, 'fraction_numerical': 0.012279125486672657, 'mean_word_length': 3.254777070063694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6540012', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1037, 'n_words': 274}