This seems to be a race condition.
The following transcripts show VTY sessions extracted from TCP streams in pcap files stored by the test.
A successful test run shows 'NONE mode' once on the VTY, but then shows 'PDCH mode':
Welcome to the OsmoBSC VTY interface
Copyright (C) 2008-2018 Harald Welte, Holger Freyther
Contributions by Daniel Willmann, Jan L..bbe, Stefan Schmidt
Dieter Spaar, Andreas Eversberg, Sylvain Munaut, Neels Hofmeyr
License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
........"...OsmoBSC> enable
enable
OsmoBSC# configure terminal
configure terminal
OsmoBSC(config)# network
network
OsmoBSC(config-net)# bts 0
bts 0
OsmoBSC(config-net-bts)# trx 0
trx 0
OsmoBSC(config-net-bts-trx)# timeslot 6
timeslot 6
OsmoBSC(config-net-bts-trx-ts)# phys_chan_config TCH/F_TCH/H_PDCH
phys_chan_config TCH/F_TCH/H_PDCH
OsmoBSC(config-net-bts-trx-ts)# end
end
OsmoBSC# drop bts connection 0 oml
drop bts connection 0 oml
OsmoBSC# show timeslot 0 0 6
show timeslot 0 0 6
BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (NONE mode), TSC 2
NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
OsmoBSC# show timeslot 0 0 6
show timeslot 0 0 6
BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (PDCH mode), TSC 2
NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
OsmoBSC# configure terminal
Whereas the failing test run twice saw 'NONE mode' on the VTY:
Welcome to the OsmoBSC VTY interface
Copyright (C) 2008-2018 Harald Welte, Holger Freyther
Contributions by Daniel Willmann, Jan L..bbe, Stefan Schmidt
Dieter Spaar, Andreas Eversberg, Sylvain Munaut, Neels Hofmeyr
License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
........"...OsmoBSC> enable
enable
OsmoBSC# configure terminal
configure terminal
OsmoBSC(config)# network
network
OsmoBSC(config-net)# bts 0
bts 0
OsmoBSC(config-net-bts)# trx 0
trx 0
OsmoBSC(config-net-bts-trx)# timeslot 6
timeslot 6
OsmoBSC(config-net-bts-trx-ts)# phys_chan_config TCH/F_TCH/H_PDCH
phys_chan_config TCH/F_TCH/H_PDCH
OsmoBSC(config-net-bts-trx-ts)# end
end
OsmoBSC# drop bts connection 0 oml
drop bts connection 0 oml
OsmoBSC# show timeslot 0 0 6
show timeslot 0 0 6
BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (NONE mode), TSC 2
NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
OsmoBSC# show timeslot 0 0 6
show timeslot 0 0 6
BTS 0, TRX 0, Timeslot 6, phys cfg TCH/F_TCH/H_PDCH (NONE mode), TSC 2
NM State: Oper 'Enabled', Admin 'Unlocked', Avail 'OK'
OsmoBSC#