fix resource error reporting for unavailable resource
On failure to find an unused resource (in case a test tries to use more resources than are reserved), the handling code had a bug: print reserved_resources from the proper source, i.e. suite_run. Change-Id: Ifdc4201581b3293605196292339e841543ea284e
This commit is contained in:
parent
8d8b03e1e3
commit
c86ab211c9
|
@ -99,7 +99,7 @@ class Test(log.Origin):
|
|||
self.path)
|
||||
success = True
|
||||
except resource.NoResourceExn:
|
||||
self.err('Current resource state:\n', repr(reserved_resources))
|
||||
self.err('Current resource state:\n', repr(suite_run.reserved_resources))
|
||||
raise
|
||||
finally:
|
||||
if success:
|
||||
|
|
Loading…
Reference in New Issue