Skip to content

Commit a6944f8

Browse files
committed
test: fix setup issues w. router test
1 parent f7cd383 commit a6944f8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

test/net/integration/router/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ alias server1="sudo ip netns exec $NSNAME"
1414
setup() {
1515

1616
# TODO: it's probably not nice to install test deps here
17-
sudo apt install iperf3
17+
sudo apt install -y iperf3
1818

1919
# Make sure the default bridge exists
2020
$INCLUDEOS_PREFIX/includeos/scripts/create_bridge.sh

test/net/integration/router/test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def move_tap1(o):
2727
print "Moving",if2, "to", br2
2828
subprocess.call(["sudo", "brctl", "delif", br1, if2])
2929
subprocess.call(["sudo", "brctl", "addif", br2, if2])
30+
subprocess.call(["sudo", "ifconfig", if2, "up"])
3031

3132

3233
def clean():

0 commit comments

Comments
 (0)