The root cause is located in the job file mobilebroadband.txt.in:
Line 9 of job mobilebroadband/gsm_connection's command section says:
INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 13`
If I omit the last "cut -d ":" -f 13" command, I see the following output:
----------
u@u-Embedded-Box-PC-5000:~$ INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm`
u@u-Embedded-Box-PC-5000:~$ echo $INTERFACE
GENERAL:ttyACM3:gsm:NMDeviceModem:Telit:6 CDC-ACM + 1 CDC-ECM:cdc_acm, cdc_ether:::(unknown):0:100 (connected):0 (No reason given):/org/freedesktop/ModemManager1/Modem/0:ppp0:no:yes:yes:no:--:test connection:74298ac0-52c7-4b28-a6ad-ea4d77f160af:/org/freedesktop/NetworkManager/ActiveConnection/11
-----------
Tracing back, we can see that the "cut -d ":" -f 13" results in the value "0 (No reason given)", which is the value that causes the test case to fail.
The root cause is located in the job file mobilebroadband .txt.in:
Line 9 of job mobilebroadband /gsm_connection 's command section says:
INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 13`
If I omit the last "cut -d ":" -f 13" command, I see the following output: Box-PC- 5000:~$ INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm` Box-PC- 5000:~$ echo $INTERFACE ttyACM3: gsm:NMDeviceMod em:Telit: 6 CDC-ACM + 1 CDC-ECM:cdc_acm, cdc_ether: ::(unknown) :0:100 (connected):0 (No reason given): /org/freedeskto p/ModemManager1 /Modem/ 0:ppp0: no:yes: yes:no: --:test connection: 74298ac0- 52c7-4b28- a6ad-ea4d77f160 af:/org/ freedesktop/ NetworkManager/ ActiveConnectio n/11
----------
u@u-Embedded-
u@u-Embedded-
GENERAL:
-----------
Tracing back, we can see that the "cut -d ":" -f 13" results in the value "0 (No reason given)", which is the value that causes the test case to fail.