"""Runs various tests in the repository."""

import argparse
import subprocess
import repo_util


def main(argv):
  root = "//third_party/java_src/j2cl/"
  cmd = ["blaze", "test", "--keep_going"]
  cmd += [root + t + "/..." for t in argv.test_pattern] or [root + "..."]
  cmd += repo_util.create_test_filter(argv.platforms)
  subprocess.call(cmd)


def add_arguments(parser):
  parser.add_argument(
      "test_pattern",
      metavar="<root>",
      nargs="*",
      help="test root(s). e.g. transpiler jre")


def run_for_presubmit():
  argv = argparse.Namespace(test_pattern=[])
  main(argv)

"""Runs various tests in the repository."""

import argparse
import subprocess
import repo_util


def main(argv):
  root = "//third_party/java_src/j2cl/"
  cmd = ["blaze", "test", "--test_tag_filters=-chamber", "--keep_going"]
  cmd += [root + t + "/..." for t in argv.test_pattern] or [root + "..."]
  cmd += repo_util.create_test_filter(argv.platforms)
  subprocess.call(cmd)


def add_arguments(parser):
  parser.add_argument(
      "test_pattern",
      metavar="<root>",
      nargs="*",
      help="test root(s). e.g. transpiler jre")


def run_for_presubmit():
  argv = argparse.Namespace(test_pattern=[])
  main(argv)

Exclude chamber workflow from targets tested by j2 testall
Exclude chamber workflow from targets tested by j2 testall

PiperOrigin-RevId: 384424406

  """Runs various tests in the repository."""
  
  import argparse
  import subprocess
  import repo_util
  
  
  def main(argv):
    root = "//third_party/java_src/j2cl/"
-   cmd = ["blaze", "test", "--keep_going"]
+   cmd = ["blaze", "test", "--test_tag_filters=-chamber", "--keep_going"]
    cmd += [root + t + "/..." for t in argv.test_pattern] or [root + "..."]
    cmd += repo_util.create_test_filter(argv.platforms)
    subprocess.call(cmd)
  
  
  def add_arguments(parser):
    parser.add_argument(
        "test_pattern",
        metavar="<root>",
        nargs="*",
        help="test root(s). e.g. transpiler jre")
  
  
  def run_for_presubmit():
    argv = argparse.Namespace(test_pattern=[])
    main(argv)
  
Exclude chamber workflow from targets tested by j2 testall
## Code Before:
"""Runs various tests in the repository."""

import argparse
import subprocess
import repo_util


def main(argv):
  root = "//third_party/java_src/j2cl/"
  cmd = ["blaze", "test", "--keep_going"]
  cmd += [root + t + "/..." for t in argv.test_pattern] or [root + "..."]
  cmd += repo_util.create_test_filter(argv.platforms)
  subprocess.call(cmd)


def add_arguments(parser):
  parser.add_argument(
      "test_pattern",
      metavar="<root>",
      nargs="*",
      help="test root(s). e.g. transpiler jre")


def run_for_presubmit():
  argv = argparse.Namespace(test_pattern=[])
  main(argv)

## Instruction:
Exclude chamber workflow from targets tested by j2 testall
## Code After:
"""Runs various tests in the repository."""

import argparse
import subprocess
import repo_util


def main(argv):
  root = "//third_party/java_src/j2cl/"
  cmd = ["blaze", "test", "--test_tag_filters=-chamber", "--keep_going"]
  cmd += [root + t + "/..." for t in argv.test_pattern] or [root + "..."]
  cmd += repo_util.create_test_filter(argv.platforms)
  subprocess.call(cmd)


def add_arguments(parser):
  parser.add_argument(
      "test_pattern",
      metavar="<root>",
      nargs="*",
      help="test root(s). e.g. transpiler jre")


def run_for_presubmit():
  argv = argparse.Namespace(test_pattern=[])
  main(argv)
