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)
def test_get_dimensions_load_test(self): os.environ["SWARMING_LOAD_TEST"] = "1" self.assertEqual(["id", "load_test"], sorted(bot_main.get_dimensions(None)))
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)
def test_get_dimensions_load_test(self): os.environ['SWARMING_LOAD_TEST'] = '1' self.assertEqual(['id', 'load_test'], sorted(bot_main.get_dimensions()))
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)
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)