aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment_factory_unittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'crosperf/experiment_factory_unittest.py')
-rwxr-xr-xcrosperf/experiment_factory_unittest.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/crosperf/experiment_factory_unittest.py b/crosperf/experiment_factory_unittest.py
index 44090e5c..b7d3420b 100755
--- a/crosperf/experiment_factory_unittest.py
+++ b/crosperf/experiment_factory_unittest.py
@@ -219,21 +219,20 @@ class ExperimentFactoryTest(unittest.TestCase):
def test_get_default_remotes(self):
board_list = [
- 'x86-alex', 'lumpy', 'elm', 'parrot', 'daisy', 'peach_pit', 'peppy',
- 'squawks'
+ 'lumpy', 'elm', 'parrot', 'daisy', 'peach_pit', 'peppy', 'squawks'
]
ef = ExperimentFactory()
self.assertRaises(Exception, ef.GetDefaultRemotes, 'bad-board')
- # Verify that we have entries for every board, and that we get three
- # machines back for each board.
+ # Verify that we have entries for every board, and that we get at least
+ # two machines for each board.
for b in board_list:
remotes = ef.GetDefaultRemotes(b)
- if b == 'elm':
- self.assertEqual(len(remotes), 2)
+ if b == 'daisy':
+ self.assertEqual(len(remotes), 1)
else:
- self.assertEqual(len(remotes), 3)
+ self.assertGreaterEqual(len(remotes), 2)
if __name__ == '__main__':