aboutsummaryrefslogtreecommitdiff
path: root/crosperf/settings_factory_unittest.py
diff options
context:
space:
mode:
authorJordan R Abrahams <ajordanr@google.com>2021-10-07 03:27:51 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-11 07:29:49 +0000
commitc5e12fbac037054444b2c07d708745c377d68328 (patch)
treeda2ae5bcf4bc87c5dbe5c9bef60d4a3221f07df0 /crosperf/settings_factory_unittest.py
parentec4d2aec19dc05d45eef5ea4925cbb72f2a2123f (diff)
downloadtoolchain-utils-c5e12fbac037054444b2c07d708745c377d68328.tar.gz
Add 'no_lock' crosperf setting
This global experiment setting prevents crosperf from attempting to lock the associated devices. This is important if the devices were locked previously before by crosfleet. BUG=b:187535367 TEST=CQ TEST=Lease board from crosfleet. Forward SSH port. Run crosperf on forwarded port. Change-Id: I0f5341e07e325a613c6316778c0f096f6d8088a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3210525 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Jordan R Abrahams <ajordanr@google.com> Commit-Queue: Jordan R Abrahams <ajordanr@google.com>
Diffstat (limited to 'crosperf/settings_factory_unittest.py')
-rwxr-xr-xcrosperf/settings_factory_unittest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/crosperf/settings_factory_unittest.py b/crosperf/settings_factory_unittest.py
index 035da8d7..8277e870 100755
--- a/crosperf/settings_factory_unittest.py
+++ b/crosperf/settings_factory_unittest.py
@@ -50,7 +50,7 @@ class GlobalSettingsTest(unittest.TestCase):
def test_init(self):
res = settings_factory.GlobalSettings('g_settings')
self.assertIsNotNone(res)
- self.assertEqual(len(res.fields), 39)
+ self.assertEqual(len(res.fields), 40)
self.assertEqual(res.GetField('name'), '')
self.assertEqual(res.GetField('board'), '')
self.assertEqual(res.GetField('crosfleet'), False)
@@ -108,7 +108,7 @@ class SettingsFactoryTest(unittest.TestCase):
g_settings = settings_factory.SettingsFactory().GetSettings(
'global', 'global')
self.assertIsInstance(g_settings, settings_factory.GlobalSettings)
- self.assertEqual(len(g_settings.fields), 39)
+ self.assertEqual(len(g_settings.fields), 40)
if __name__ == '__main__':