Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 140d8747 authored by Luca Farsi's avatar Luca Farsi Committed by Gerrit Code Review
Browse files

Merge "Add option for test discovery info mode" into main

parents e7e27fb3 18f6e105
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -84,14 +84,14 @@ class BuildPlanner:
    packaging_commands_getters = []
    # In order to roll optimizations out differently between test suites and
    # device builds, we have separate flags.
    enable_discovery = ('test_suites_zip_test_discovery'
    enable_discovery = (('test_suites_zip_test_discovery'
        in self.build_context.enabled_build_features
        and not self.args.device_build
    ) or (
        'device_zip_test_discovery'
        in self.build_context.enabled_build_features
        and self.args.device_build
    )
    )) and not self.args.test_discovery_info_mode
    logging.info(f'Discovery mode is enabled= {enable_discovery}')
    preliminary_build_targets = self._collect_preliminary_build_targets(enable_discovery)

@@ -252,6 +252,11 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
      action='store_true',
      help='Flag to indicate running a device build.',
  )
  argparser.add_argument(
      '--test_discovery_info_mode',
      action='store_true',
      help='Flag to enable running test discovery in info only mode.',
  )

  return argparser.parse_args(argv)