Skip to content

Commit

Permalink
tests: use iptables --wait
Browse files Browse the repository at this point in the history
QubesOS/qubes-issues#3665 affects also tests...
  • Loading branch information
marmarek committed Oct 27, 2018
1 parent 2f3a984 commit 4742a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubes/tests/integ/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def run_netvm_cmd(cmd):
run_netvm_cmd("ip link add test0 type dummy")
run_netvm_cmd("ip link set test0 up")
run_netvm_cmd("ip addr add {}/24 dev test0".format(self.test_ip))
run_netvm_cmd("iptables -I INPUT -d {} -j ACCEPT".format(self.test_ip))
run_netvm_cmd("iptables -I INPUT -d {} -j ACCEPT --wait".format(
self.test_ip))
# ignore failure
self.run_cmd(self.testnetvm, "killall --wait dnsmasq")
run_netvm_cmd("dnsmasq -a {ip} -A /{name}/{ip} -i test0 -z".format(
Expand Down

0 comments on commit 4742a63

Please sign in to comment.