blob: 569672986b47d543cccd89bb342708fc9ebda552 [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
Chris McDonalde69db662018-11-15 12:50:18 -07007from chromite.lib import cros_test_lib
8from chromite.scripts import cros_run_unit_tests
9
Mike Frysinger88770ef2021-05-21 11:04:00 -040010
Greg Edelstona4c9b3b2020-01-07 17:51:13 -070011pytestmark = cros_test_lib.pytestmark_inside_only
12
Chris McDonalde69db662018-11-15 12:50:18 -070013
14class DetermineBoardPackagesTest(cros_test_lib.TestCase):
15 """Tests that package determination returns a non-empty set"""
16
Chris McDonalde69db662018-11-15 12:50:18 -070017 def testNonEmptyPackageSet(self):
18 """Asserts that the deps of a known package are non-empty"""
19 self.assertTrue(cros_run_unit_tests.determine_board_packages(
20 '/', ('virtual/implicit-system',)))