Public bug reported:

It looks like the use of the -D option for arping is suppressing the
utility from outputting the MAC address, which is required to pattern-
match in the generated script.

mike@doherty:/etc/whereami $ sudo whereami --scriptdebug
[sudo] password for mike: 
+ ifconfig eth0 up
+ [ -x /sbin/mii-tool ]
+ /sbin/mii-tool eth0
+ grep link ok
+ exit 0
+ case "$1" in
+ IFACE=eth0
+ IP_ADDRESS=10.237.236.1
+ MAC_ADDRESS=70:CA:9B:6D:E4:21,10.237.236.1
+ MAC_ADDRESS=70:CA:9B:6D:E4:21
+ '[' eth0 = '' ']'
+ INTERFACE=eth0
+ MAC_ADDRESS=70:CA:9B:6D:E4:21
++ ifconfig
++ egrep '^eth0[\t ]'
+ IFSTATE='eth0      Link encap:Ethernet  HWaddr a4:ba:db:fe:1b:ff  '
+ '[' 'eth0      Link encap:Ethernet  HWaddr a4:ba:db:fe:1b:ff  ' = '' ']'
+ arping -f -w1 -D -I eth0 10.237.236.1
+ grep -i -e 70:CA:9B:6D:E4:21
+ '[' 'eth0      Link encap:Ethernet  HWaddr a4:ba:db:fe:1b:ff  ' = '' ']'
+ RESULT=1
+ exit 1
Continuing at lan
+ LASTLOCN=lan
+ export LASTLOCN
+ LOCATION=lan
+ export LOCATION
+ GATEWAY=
+ PROXY=none
+ NTPDAEMON=/etc/init.d/ntp-server
+ NTPSERVER=ntp
+ route del -net 10.237.245.0 netmask 255.255.255.0 gw 10.237.236.3
mike@doherty:/etc/whereami $ sudo arping -f -w1 -D -I eth0 10.237.236.1 | grep 
-i -e 70:CA:9B:6D:E4:21
mike@doherty:/etc/whereami $ sudo arping -f -w1 -I eth0 10.237.236.1 | grep -i 
-e 70:CA:9B:6D:E4:21Unicast reply from 10.237.236.1 [70:CA:9B:6D:E4:21]  3.194ms

** Affects: whereami (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1069982

Title:
  testarp test fails when it should succeed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/whereami/+bug/1069982/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to