mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-29 00:04:36 +00:00
Fix tests
This commit is contained in:
@@ -266,7 +266,7 @@ function testPublicIpSegmentWithVPNTurnedOnOsx() {
|
|||||||
|
|
||||||
# Fake ifconfig
|
# Fake ifconfig
|
||||||
cat > $FOLDER/sbin/ifconfig <<EOF
|
cat > $FOLDER/sbin/ifconfig <<EOF
|
||||||
#!/bin/sh
|
#!/usr/bin/env zsh
|
||||||
cat <<INNER
|
cat <<INNER
|
||||||
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
|
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
|
||||||
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
|
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ function tearDown() {
|
|||||||
function fakeIfconfig() {
|
function fakeIfconfig() {
|
||||||
# Fake ifconfig
|
# Fake ifconfig
|
||||||
cat > $FOLDER/sbin/ifconfig <<EOF
|
cat > $FOLDER/sbin/ifconfig <<EOF
|
||||||
#!/bin/sh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
if [[ "\$#" -gt 0 ]]; then
|
if [[ "\$#" -gt 0 ]]; then
|
||||||
cat <<INNER
|
cat <<INNER
|
||||||
@@ -80,7 +80,7 @@ function fakeIp() {
|
|||||||
local INTERFACE2="${2}"
|
local INTERFACE2="${2}"
|
||||||
[[ -z "${INTERFACE2}" ]] && INTERFACE2="disabled-if2"
|
[[ -z "${INTERFACE2}" ]] && INTERFACE2="disabled-if2"
|
||||||
cat > $FOLDER/sbin/ip <<EOF
|
cat > $FOLDER/sbin/ip <<EOF
|
||||||
#!/bin/sh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
if [[ "\$*" == 'link ls up' ]]; then
|
if [[ "\$*" == 'link ls up' ]]; then
|
||||||
cat <<INNER
|
cat <<INNER
|
||||||
|
|||||||
Reference in New Issue
Block a user