From 6a99ace571fd22bab033b030dab3aed45eba8211 Mon Sep 17 00:00:00 2001 From: Po-Hsu Lin Date: Thu, 7 Apr 2016 16:09:04 +0800 Subject: p-p-c: sele the correct interface for mobile broadband test. The interface from nmcli output has been changed to the second field, change the script to select the correct interface column. --- jobs/mobilebroadband.txt.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/mobilebroadband.txt.in b/jobs/mobilebroadband.txt.in index 6da30182..0f1abb7c 100644 --- a/jobs/mobilebroadband.txt.in +++ b/jobs/mobilebroadband.txt.in @@ -17,7 +17,7 @@ command: `[ -n "${GSM_USERNAME}" ] && echo "--username=$GSM_USERNAME"` \ `[ -n "${GSM_PASSWORD}" ] && echo "--password=$GSM_PASSWORD"` || exit 1 fi - 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` + 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 2` echo "connected GSM interface seems to be $INTERFACE" [ -z $INTERFACE ] && exit 1 curl http://start.ubuntu.com/connectivity-check_html --interface $INTERFACE @@ -46,7 +46,7 @@ command: `[ -n "${CDMA_USERNAME}" ] && echo "--username=$CDMA_USERNAME"` \ `[ -n "${CDMA_PASSWORD}" ] && echo "--password=$CDMA_PASSWORD"` || exit 1 fi - INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep cdma |cut -d ":" -f 13` + INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep cdma |cut -d ":" -f 2` echo "connected CDMA interface seems to be $INTERFACE" [ -z $INTERFACE ] && exit 1 curl http://start.ubuntu.com/connectivity-check_html --interface $INTERFACE -- cgit v1.2.3