summaryrefslogtreecommitdiff
path: root/units/ethernet
diff options
authorPierre Equoy <pierre.equoy@canonical.com>2021-11-11 17:31:34 +0800
committerPierre Equoy <pierre.equoy@canonical.com>2021-11-11 17:31:34 +0800
commit4f3f133fc45658c808ec64cb8f9126dc5da26434 (patch)
treebf56696b1596425dc9c3d7559d087084d1e0f493 /units/ethernet
parentcadeaae3977af14814041c116badac644640b8dc (diff)
Fix: use root for Ethernet hotplug jobs
ethernet/hotplug-* test cases fail with error "ping: SO_BINDTODEVICE xxx: Operation not permitted" because root is required to select the interface to ping with (e.g. `sudo ping 192.168.1.1 -I enp4s0`). LP: 1950566
Diffstat (limited to 'units/ethernet')
-rw-r--r--units/ethernet/jobs.pxu3
1 files changed, 2 insertions, 1 deletions
diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu
index 89565bf..244cca6 100644
--- a/units/ethernet/jobs.pxu
+++ b/units/ethernet/jobs.pxu
@@ -301,7 +301,8 @@ plugin: user-interact
command:
eth_hotplugging.py {{ interface }} && gateway_ping_test.py -v --interface {{ interface }}
category_id: com.canonical.plainbox::ethernet
-estimated_duration: 1.0
+estimated_duration: 60.0
+user: root
flags: preserve-locale
unit: template