Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Adding checking of host_status"
[doctor.git]
/
tests
/
run.sh
diff --git
a/tests/run.sh
b/tests/run.sh
index
426583e
..
00dcabc
100755
(executable)
--- a/
tests/run.sh
+++ b/
tests/run.sh
@@
-176,7
+176,7
@@
inject_failure() {
echo "disabling network of compute host [$COMPUTE_HOST] for 3 mins..."
cat > disable_network.sh << 'END_TXT'
#!/bin/bash -x
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
sleep 1
sudo ip link set $dev down
sleep 180