diff options
author | 2024-11-25 18:21:45 +0000 | |
---|---|---|
committer | 2024-12-06 18:23:58 +0000 | |
commit | 62035d9c960049e188f1d593180f25e0bb8c9d8e (patch) | |
tree | f7ea3a379ee01c336ce1824e8574ff778206927e /ci/build_test_suites_test.py | |
parent | 3181bdd2c323dee5979d5b2f6f85f8558f834dce (diff) |
Add --device-build flag to build_test_suites.py
The flag will be used to differentiate device builds so we can do the appropriate BWYN logic. Also include DIST_DIR as a required env var.
Bug: 378704055
Change-Id: I203645ab82d52024a713c41c6fdc806f8672f7cc
Test: atest build_test_suites_test
Diffstat (limited to 'ci/build_test_suites_test.py')
-rw-r--r-- | ci/build_test_suites_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/build_test_suites_test.py b/ci/build_test_suites_test.py index 26f4316f8c..503a5f46a3 100644 --- a/ci/build_test_suites_test.py +++ b/ci/build_test_suites_test.py @@ -78,6 +78,12 @@ class BuildTestSuitesTest(fake_filesystem_unittest.TestCase): with self.assert_raises_word(build_test_suites.Error, 'TOP'): build_test_suites.main([]) + def test_missing_dist_dir_env_var_raises(self): + del os.environ['DIST_DIR'] + + with self.assert_raises_word(build_test_suites.Error, 'DIST_DIR'): + build_test_suites.main([]) + def test_invalid_arg_raises(self): invalid_args = ['--invalid_arg'] @@ -121,6 +127,7 @@ class BuildTestSuitesTest(fake_filesystem_unittest.TestCase): 'TARGET_RELEASE': 'release', 'TARGET_PRODUCT': 'product', 'TOP': str(self.fake_top), + 'DIST_DIR': str(self.fake_top.joinpath('dist')), }) self.mock_subprocess_run.return_value = 0 |