diff options
author | Yu-Ju Hong <yjhong@chromium.org> | 2014-11-26 11:51:42 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-27 00:42:03 +0000 |
commit | ccd88beafa600daab8ea9c6901220bb4d564e872 (patch) | |
tree | 4ac26ce645382f6c9f79cdc4534fe73aa71e7bbd /cbuildbot/cbuildbot_config_unittest.py | |
parent | d6e2df021fc9284f36c835e8c5114a845564cba9 (diff) | |
download | chromite-ccd88beafa600daab8ea9c6901220bb4d564e872.tar.gz |
cbuildbot_config: don't override vm_tests for arm or brillo boards
These boards cannot run VMTests. Disable overriding them for trybots.
BUG=None
TEST=`cbuildbot_config_unittest`
Change-Id: I86d5f5c21d34397b430fb98f457ba073e7f2b346
Reviewed-on: https://chromium-review.googlesource.com/232007
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Commit-Queue: Yu-Ju Hong <yjhong@chromium.org>
Diffstat (limited to 'cbuildbot/cbuildbot_config_unittest.py')
-rwxr-xr-x | cbuildbot/cbuildbot_config_unittest.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cbuildbot/cbuildbot_config_unittest.py b/cbuildbot/cbuildbot_config_unittest.py index 88d81c14e..fe8f4dff0 100755 --- a/cbuildbot/cbuildbot_config_unittest.py +++ b/cbuildbot/cbuildbot_config_unittest.py @@ -677,9 +677,16 @@ class OverrideForTrybotTest(cros_test_lib.TestCase): self.assertEquals(new['vm_tests'], [constants.SMOKE_SUITE_TEST_TYPE, constants.SIMPLE_AU_TEST_TYPE, constants.CROS_VM_TEST_TYPE]) - old['vm_tests'] = None + + # Don't override vm tests for arm boards. + old = cbuildbot_config.config['daisy-paladin'] + new = cbuildbot_config.OverrideConfigForTrybot(old, mock_options) + self.assertEquals(new['vm_tests'], old['vm_tests']) + + # Don't override vm tests for brillo boards. + old = cbuildbot_config.config['duck-paladin'] new = cbuildbot_config.OverrideConfigForTrybot(old, mock_options) - self.assertIsNone(new['vm_tests']) + self.assertEquals(new['vm_tests'], old['vm_tests']) if __name__ == '__main__': |