OptimisingTestSuite.switch doesn't take into account dependencies between resources
Bug #1643358 reported by
Free Ekanayaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testresources |
Fix Released
|
Undecided
|
Free Ekanayaka |
Bug Description
When OptimisingTestSuite switches between resources needed by a test, the order in which such resources are made and cleaned is random, since the code iterates through a flattened set() of the resource dependency tree.
If resource A depends on resource B (e.g. A.resources == [("B", B)]), it can happen that A gets made before B, which typically results in a failure.
Changed in testresources: | |
status: | In Progress → Fix Committed |
Changed in testresources: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Added PR: https:/ /github. com/testing- cabal/testresou rces/pull/ 6