summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Goncalves <carlos.goncalves@neclab.eu>2016-05-17 11:40:52 +0200
committerCarlos Goncalves <carlos.goncalves@neclab.eu>2016-05-17 15:27:37 +0200
commit8e583dc3a3fc0392a5197803a598ab5734310d66 (patch)
treec071a5348bf63aede800a6932ea8aa325a9806bc
parenta1bab6ecdfbfaf5521f31d9539e256fc6e0cac29 (diff)
Run 'ip' with sudo
Change-Id: I3de7749746dfd2eb0a67a428b7f0ae4503c14123 Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
-rwxr-xr-xtests/run.sh2
1 files changed, 1 insertions, 1 deletions
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