Exemplo n.º 1
0
 def _RunShard(runner_factory):
     devices = ['0', '1']
     # Mock out android_commands.GetAttachedDevices().
     android_commands.GetAttachedDevices = lambda: devices
     return shard.ShardAndRunTests(runner_factory, devices, ['a', 'b', 'c'])
Exemplo n.º 2
0
 def _RunShard(runner_factory):
     return shard.ShardAndRunTests(runner_factory, ['0', '1'],
                                   ['a', 'b', 'c'])
Exemplo n.º 3
0
 def testNoTests(self):
     results = shard.ShardAndRunTests(MockRunner, ['0', '1'], [])
     self.assertEqual(len(results.GetAll()), 0)