diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-01-22 21:18:09 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-01-22 21:18:09 +0300 |
commit | 32d3216bde4c22721ba7e4cb7ff39f12b5f3b2a4 (patch) | |
tree | 4fed6cad5a37c6790c20f52838f17723f81dd6d2 | |
parent | da50151d2487b3fb4a54a6ae101971605dde66ee (diff) |
Fix tests
-rwxr-xr-x | test/segments/public_ip.spec | 2 | ||||
-rwxr-xr-x | test/segments/vpn_ip.spec | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/segments/public_ip.spec b/test/segments/public_ip.spec index abfecbcb..a3f41e61 100755 --- a/test/segments/public_ip.spec +++ b/test/segments/public_ip.spec @@ -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 diff --git a/test/segments/vpn_ip.spec b/test/segments/vpn_ip.spec index b213202e..3333fd07 100755 --- a/test/segments/vpn_ip.spec +++ b/test/segments/vpn_ip.spec @@ -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 |