blob: ac61db9d18a26418d1758f5872f3092c44af2437 [file] [log] [blame]
Chris McDonalde69db662018-11-15 12:50:18 -07001# Copyright 2018 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""Unit tests for cros_run_unit_tests.py."""
6
Mike Frysinger6a2b0f22020-02-20 13:34:07 -05007import sys
8
Chris McDonalde69db662018-11-15 12:50:18 -07009from chromite.lib import cros_test_lib
10from chromite.scripts import cros_run_unit_tests
11
Greg Edelstona4c9b3b2020-01-07 17:51:13 -070012pytestmark = cros_test_lib.pytestmark_inside_only
13
Chris McDonalde69db662018-11-15 12:50:18 -070014
Mike Frysinger6a2b0f22020-02-20 13:34:07 -050015assert sys.version_info >= (3, 6), 'This module requires Python 3.6+'
16
17
Chris McDonalde69db662018-11-15 12:50:18 -070018class DetermineBoardPackagesTest(cros_test_lib.TestCase):
19 """Tests that package determination returns a non-empty set"""
20
Chris McDonalde69db662018-11-15 12:50:18 -070021 def testNonEmptyPackageSet(self):
22 """Asserts that the deps of a known package are non-empty"""
23 self.assertTrue(cros_run_unit_tests.determine_board_packages(
24 '/', ('virtual/implicit-system',)))