Example #1
0
 def test_get_dimensions(self):
   dimensions = set(bot_main.get_dimensions(None))
   dimensions.discard('hidpi')
   dimensions.discard('zone')  # Only set on GCE bots.
   expected = {'cores', 'cpu', 'gpu', 'id', 'machine_type', 'os', 'pool'}
   if sys.platform == 'darwin':
     expected.add('xcode_version')
   self.assertEqual(expected, dimensions)
Example #2
0
 def test_get_dimensions(self):
   dimensions = set(bot_main.get_dimensions(None))
   dimensions.discard('hidpi')
   dimensions.discard('zone')  # Only set on GCE bots.
   expected = {'cores', 'cpu', 'gpu', 'id', 'machine_type', 'os', 'pool'}
   if sys.platform == 'darwin':
     expected.add('xcode_version')
   self.assertEqual(expected, dimensions)
Example #3
0
 def test_get_dimensions_load_test(self):
     os.environ["SWARMING_LOAD_TEST"] = "1"
     self.assertEqual(["id", "load_test"], sorted(bot_main.get_dimensions(None)))
Example #4
0
 def test_get_dimensions(self):
     dimensions = set(bot_main.get_dimensions(None))
     dimensions.discard("hidpi")
     dimensions.discard("zone")  # Only set on GCE bots.
     expected = {"cores", "cpu", "gpu", "id", "machine_type", "os"}
     self.assertEqual(expected, dimensions)
Example #5
0
 def test_get_dimensions_load_test(self):
     os.environ['SWARMING_LOAD_TEST'] = '1'
     self.assertEqual(['id', 'load_test'],
                      sorted(bot_main.get_dimensions()))
Example #6
0
 def test_get_dimensions(self):
     dimensions = set(bot_main.get_dimensions())
     dimensions.discard('hidpi')
     dimensions.discard('zone')  # Only set on GCE bots.
     expected = {'cores', 'cpu', 'gpu', 'id', 'machine_type', 'os'}
     self.assertEqual(expected, dimensions)
Example #7
0
 def test_get_dimensions_load_test(self):
   os.environ['SWARMING_LOAD_TEST'] = '1'
   self.assertEqual(['id', 'load_test'], sorted(bot_main.get_dimensions()))
Example #8
0
 def test_get_dimensions(self):
   dimensions = set(bot_main.get_dimensions())
   dimensions.discard('hidpi')
   expected = {'cores', 'cpu', 'gpu', 'id', 'machine_type', 'os'}
   self.assertEqual(expected, dimensions)