aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-14 03:37:13 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-15 12:22:35 +0000
commit7e2e8f1d65d82e4736d73a16ba8f125bd79bd835 (patch)
tree92c4152edc056eddfa524d67adf0bc126a474ef6
parent619447404f68699e8103bcd7022dfa4114f429be (diff)
log state dir
On the log output, clearly show which state dir is used. Since all runs should use the same state dir, this is important and/or reassuring to see. Change-Id: Ie92f1879a35d8bb399ee916b7ef72f9ee7d47409
-rw-r--r--selftest/suite_test.ok2
-rw-r--r--src/osmo_gsm_tester/suite.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/selftest/suite_test.ok b/selftest/suite_test.ok
index bb04e49..fda77dc 100644
--- a/selftest/suite_test.ok
+++ b/selftest/suite_test.ok
@@ -25,7 +25,7 @@ resources:
cnf -: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test
cnf -: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir
tst test_suite: Suite run start
-tst test_suite: reserving resources...
+tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ...
tst test_suite: DBG: {combining='resources'} [test_suite↪test_suite]
tst test_suite: DBG: {definition_conf={bts=[{'times': '1'}], modem=[{'times': '2'}], nitb_iface=[{'times': '1'}]}} [test_suite↪(combining_scenarios='resources')↪test_suite]
tst test_suite: Reserving 1 x bts (candidates: 3) [test_suite↪test_suite]
diff --git a/src/osmo_gsm_tester/suite.py b/src/osmo_gsm_tester/suite.py
index affb9ad..43e55af 100644
--- a/src/osmo_gsm_tester/suite.py
+++ b/src/osmo_gsm_tester/suite.py
@@ -186,7 +186,7 @@ class SuiteRun(log.Origin):
def reserve_resources(self):
if self.reserved_resources:
raise RuntimeError('Attempt to reserve resources twice for a SuiteRun')
- self.log('reserving resources...')
+ self.log('reserving resources in', self.resources_pool.state_dir, '...')
with self:
self.reserved_resources = self.resources_pool.reserve(self, self.resource_requirements())