Fix tests

pull/22/head
Dominik Ritter 6 years ago
parent da50151d24
commit 32d3216bde

@ -266,7 +266,7 @@ function testPublicIpSegmentWithVPNTurnedOnOsx() {
# Fake ifconfig
cat > $FOLDER/sbin/ifconfig <<EOF
#!/bin/sh
#!/usr/bin/env zsh
cat <<INNER
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255

@ -29,7 +29,7 @@ function tearDown() {
function fakeIfconfig() {
# Fake ifconfig
cat > $FOLDER/sbin/ifconfig <<EOF
#!/bin/sh
#!/usr/bin/env zsh
if [[ "\$#" -gt 0 ]]; then
cat <<INNER
@ -80,7 +80,7 @@ function fakeIp() {
local INTERFACE2="${2}"
[[ -z "${INTERFACE2}" ]] && INTERFACE2="disabled-if2"
cat > $FOLDER/sbin/ip <<EOF
#!/bin/sh
#!/usr/bin/env zsh
if [[ "\$*" == 'link ls up' ]]; then
cat <<INNER

Loading…
Cancel
Save