Returns a list of sharded copies of the list. key is the name of the variable which needs to be appended with "--shard-tests=..."
(self, shards)
| 319 | return r |
| 320 | |
| 321 | def sharded(self, shards): |
| 322 | """Returns a list of sharded copies of the list. |
| 323 | |
| 324 | key is the name of the variable which needs to be appended with "--shard-tests=..." |
| 325 | """ |
| 326 | # RUN_TESTS_ARGS |
| 327 | ret = [] |
| 328 | for i in range(1, shards + 1): |
| 329 | s = self.copy("%s_%d_of_%d" % (self.name, i, shards)) |
| 330 | s.envs[self.sharding_variable] = self.envs.get(self.sharding_variable, "") \ |
| 331 | + " --shard_tests=%s/%s" % (i, shards) |
| 332 | ret.append(s) |
| 333 | return ret |
| 334 | |
| 335 | # Definitions of all known suites: |
| 336 | be_test = Suite("BE_TEST") |