summaryrefslogtreecommitdiff
path: root/test/segments/ip.spec
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2019-02-04 17:40:31 +0300
committerDominik Ritter <dritter03@googlemail.com>2019-02-04 17:40:31 +0300
commita00cb84da48b1f53a67c0ed43c90e6b4f720262f (patch)
tree394f5834d4f8254b1c6932d9b1d1cf842b6b2465 /test/segments/ip.spec
parent06151eeba90ce7ce54b4222d3ef359b4edb10edf (diff)
Fix regular expression and test
Diffstat (limited to 'test/segments/ip.spec')
-rwxr-xr-xtest/segments/ip.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/segments/ip.spec b/test/segments/ip.spec
index 9fb0bddb..2dce55f7 100755
--- a/test/segments/ip.spec
+++ b/test/segments/ip.spec
@@ -212,6 +212,8 @@ function testIpSegmentWorksOnOsxWithNoInterfaceSpecified() {
function testIpSegmentWorksOnOsxWithInterfaceSpecified() {
fakeIfconfig "eth1"
+ local POWERLEVEL9K_IP_INTERFACE="eth1"
+
# Load Powerlevel9k
source powerlevel9k.zsh-theme
local OS='OSX' # Fake OSX
@@ -232,6 +234,8 @@ function testIpSegmentWorksOnLinuxWithNoInterfaceSpecified() {
function testIpSegmentWorksOnLinuxWithInterfaceSpecified() {
fakeIp "eth3"
+ local POWERLEVEL9K_IP_INTERFACE="eth3"
+
# Load Powerlevel9k
source powerlevel9k.zsh-theme
local OS='Linux' # Fake Linux