fix _dependencies_passed regarding new list of setups
This commit is contained in:
parent
8652031c46
commit
73965f5c48
1 changed files with 6 additions and 5 deletions
|
|
@ -162,15 +162,16 @@ class Runner:
|
|||
pass # create empty file
|
||||
|
||||
def _dependencies_passed(self):
|
||||
"""returns true if the setup of each dependency has passed"""
|
||||
"""returns true if all setups of each dependency have passed"""
|
||||
|
||||
# todo: check more than one setup
|
||||
# todo: what about conditional setups?
|
||||
|
||||
passed_tests = [r.name for r in self.DIRS.RESULTS.glob("*") if "passed" in r.name]
|
||||
results = []
|
||||
for dependencie in self.dependencies:
|
||||
dependencie_identifier = self.combine_names(dependencie.name, dependencie.main_setup_name)
|
||||
results.append(any(dependencie_identifier in f for f in passed_tests))
|
||||
for dependencie_runner in self.dependencies:
|
||||
for setup_name in dependencie_runner.setups:
|
||||
dependencie_identifier = self.combine_names(dependencie_runner.name, setup_name.test_file)
|
||||
results.append(any(dependencie_identifier in f for f in passed_tests))
|
||||
return all(results)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue