From f1b339bad208a8611ab22d57125c9a8c57378864 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 (cherry picked from commit 8e583dc3a3fc0392a5197803a598ab5734310d66) --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/run.sh b/tests/run.sh index a970a7a5..2c0a76ce 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -135,7 +135,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