From 8e583dc3a3fc0392a5197803a598ab5734310d66 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Tue, 17 May 2016 11:40:52 +0200 Subject: Run 'ip' with sudo Change-Id: I3de7749746dfd2eb0a67a428b7f0ae4503c14123 Signed-off-by: Carlos Goncalves --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run.sh b/tests/run.sh index fc9ec951..bbe093a6 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -151,7 +151,7 @@ inject_failure() { echo "disabling network of compute host [$COMPUTE_HOST] for 3 mins..." cat > disable_network.sh << 'END_TXT' #!/bin/bash -x -dev=$(ip route | awk '/^default/{print $5}') +dev=$(sudo ip route | awk '/^default/{print $5}') sleep 1 sudo ip link set $dev down sleep 180 -- cgit 1.2.3-korg