From 4f2e73c68a0762cbfabe1406da798d8bf6169393 Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul Date: Tue, 22 Mar 2016 05:05:58 -0700 Subject: [PATCH] Only run this test on Darwin --- test/lib/helpers.bats | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/lib/helpers.bats b/test/lib/helpers.bats index eb814199..6caa1fce 100644 --- a/test/lib/helpers.bats +++ b/test/lib/helpers.bats @@ -8,8 +8,12 @@ cite _about _param _example _group _author _version load ../../lib/helpers NO_COLOR=true +IS_DARWIN=false +[[ "$(uname -s)" == "Darwin" ]] && IS_DARWIN=true -@test "helpers search aliases" { - run _bash-it-search-component 'plugins' 'base' - [[ "${lines[0]}" =~ 'plugins' && "${lines[0]}" =~ 'base' ]] -} +if [ "$IS_DARWIN" == "tru" ]; then + @test "helpers search aliases" { + run _bash-it-search-component 'plugins' 'base' + [[ "${lines[0]}" =~ 'plugins' && "${lines[0]}" =~ 'base' ]] + } +fi