mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Bug 1110763 - Raise an exception in the Marionette test runner if no tests are selected. r=jgriffin
This commit is contained in:
parent
206a008179
commit
678d7a5647
@ -922,7 +922,9 @@ setReq.onerror = function() {
|
||||
break
|
||||
|
||||
def run_test_sets(self):
|
||||
if self.total_chunks > len(self.tests):
|
||||
if len(self.tests) < 1:
|
||||
raise Exception('There are no tests to run.')
|
||||
elif self.total_chunks > len(self.tests):
|
||||
raise ValueError('Total number of chunks must be between 1 and %d.' % len(self.tests))
|
||||
if self.total_chunks > 1:
|
||||
chunks = [[] for i in range(self.total_chunks)]
|
||||
|
Loading…
Reference in New Issue
Block a user