Package: stenographer
Version: 0.0~git20161206.0.66a8e7e-5
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu artful ubuntu-patch autopkgtest

Dear maintainers,

The stenographer autopkgtest has started failing in Ubuntu because of an
infrastructure change that causes there to be more than one default route in
the routing table.  This is probably a bug
(https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1718842), but it's
still allowed for there to be more than one default route on a system.

The attached patch allows the stenographer autopkgtest to run successfully
in such an environment.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru stenographer-0.0~git20161206.0.66a8e7e/debian/tests/run-example 
stenographer-0.0~git20161206.0.66a8e7e/debian/tests/run-example
--- stenographer-0.0~git20161206.0.66a8e7e/debian/tests/run-example     
2017-01-30 03:18:35.000000000 -0800
+++ stenographer-0.0~git20161206.0.66a8e7e/debian/tests/run-example     
2017-09-21 21:28:12.000000000 -0700
@@ -7,7 +7,7 @@
 systemctl start rsyslog
 
 # tap Internet-connected interface
-IFACE=$(route -n | egrep '^0.0.0.0' | awk '{print $8}')
+IFACE=$(route -n | egrep '^0.0.0.0' | awk '{print $8; exit}')
 sed -i "s/\"Interface\": \"eth0\"/\"Interface\": \"$IFACE\"/g" 
/etc/stenographer/config
 
 # tweak settings to be more reasonable with memory for small test case

Reply via email to