[MERGED] osmo-gsm-tester[master]: fix resource error reporting for unavailable resource

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Sat May 6 23:07:42 UTC 2017


Neels Hofmeyr has submitted this change and it was merged.

Change subject: fix resource error reporting for unavailable resource
......................................................................


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
---
M src/osmo_gsm_tester/suite.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_gsm_tester/suite.py b/src/osmo_gsm_tester/suite.py
index 74c8b28..03098d6 100644
--- a/src/osmo_gsm_tester/suite.py
+++ b/src/osmo_gsm_tester/suite.py
@@ -99,7 +99,7 @@
                                          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:

-- 
To view, visit https://gerrit.osmocom.org/2500
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifdc4201581b3293605196292339e841543ea284e
Gerrit-PatchSet: 2
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list