OptimisingTestSuite.switch doesn't take into account dependencies between resources

Bug #1643358 reported by Free Ekanayaka
6
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.

Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :
Changed in testresources:
status: New → In Progress
assignee: nobody → Free Ekanayaka (free.ekanayaka)
Changed in testresources:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
Changed in testresources:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.