Chris McDonald | e69db66 | 2018-11-15 12:50:18 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | """Unit tests for cros_run_unit_tests.py.""" |
| 7 | |
| 8 | from __future__ import print_function |
| 9 | |
| 10 | from chromite.lib import cros_test_lib |
| 11 | from chromite.scripts import cros_run_unit_tests |
| 12 | |
| 13 | |
| 14 | class DetermineBoardPackagesTest(cros_test_lib.TestCase): |
| 15 | """Tests that package determination returns a non-empty set""" |
| 16 | |
Chris McDonald | e69db66 | 2018-11-15 12:50:18 -0700 | [diff] [blame] | 17 | 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',))) |