Project

General

Profile

Feature #2288

logging: print in a short way which resource is being reserved and used

Added by neels 8 months ago.

Status:
New
Priority:
Low
Assignee:
osmo-gsm-tester
Target version:
-
Start date:
05/23/2017
Due date:
% Done:

0%

Spec Reference:

Description

At first resources are being reserved:

16:18:26 tst                        debug:trx: reserving resources in /var/tmp/osmo-gsm-tester/state ...
16:18:26 tst                        debug:trx: Reserving 1 x bts (candidates: 4)
16:18:26 tst                        debug:trx: Reserving 4 x modem (candidates: 4)
16:18:26 tst                        debug:trx: Reserving 1 x nitb_iface (candidates: 3)

Then they are used by the test script:

16:18:28 tst                        debug:trx: Using 1 x modem (candidates: 4)
16:18:29 tst                        debug:trx: Using 1 x modem (candidates: 4)
16:18:30 tst                        debug:trx: Using 1 x modem (candidates: 4)
16:18:31 tst                        debug:trx: Using 1 x modem (candidates: 4)

In these messages, we should output which resource it is. Not all of the properties of it, but a short name, e.g. the label (which is so far unused but intended for these purposes). However, for ip_address, it would make sense to print the 'addr', for modem we'd like to see the modem path or the IMSI (??), for a BTS we may want to know the type ... so there might be some need to intelligently pick a label unless one is specified manually. (to avoid having to do duplicate like "ip_address: { addr: '1.2.3.4', label: '1.2.3.4' }")

Slightly unrelated: In "Using 1 x modem" it would also be good to print the test script line instead of the suite:scenario?

Also available in: Atom PDF