From a4cc7a509ad22c130db3dfc65f8bc618c57cdcf4 Mon Sep 17 00:00:00 2001 From: Alex Epstein Date: Wed, 2 Aug 2017 02:05:17 -0400 Subject: [PATCH] Stop testing the -u option for osx --- tests/cheat.bats | 2 ++ tests/cloudup.bats | 2 ++ tests/crypt.bats | 2 ++ tests/cryptocurrency.bats | 2 ++ tests/currency.bats | 2 ++ tests/geo.bats | 2 ++ tests/movies.bats | 2 ++ tests/newton.bats | 2 ++ tests/qrify.bats | 2 ++ tests/short.bats | 2 ++ tests/siteciphers.bats | 2 ++ tests/stocks.bats | 2 ++ tests/taste.bats | 2 ++ tests/todo.bats | 2 ++ tests/weather.bats | 2 ++ tests/ytview.bats | 2 ++ 16 files changed, 32 insertions(+) diff --git a/tests/cheat.bats b/tests/cheat.bats index eb4e805..185fae8 100755 --- a/tests/cheat.bats +++ b/tests/cheat.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run cheat update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } diff --git a/tests/cloudup.bats b/tests/cloudup.bats index c04b703..947d737 100755 --- a/tests/cloudup.bats +++ b/tests/cloudup.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run cloudup update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/crypt.bats b/tests/crypt.bats index 35e9bdd..3d5cf80 100755 --- a/tests/crypt.bats +++ b/tests/crypt.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run crypt update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/cryptocurrency.bats b/tests/cryptocurrency.bats index 9eca203..d9512d6 100755 --- a/tests/cryptocurrency.bats +++ b/tests/cryptocurrency.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run cryptocurrency update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/currency.bats b/tests/currency.bats index 38c3431..f34d669 100755 --- a/tests/currency.bats +++ b/tests/currency.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run currency update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/geo.bats b/tests/geo.bats index ae05974..a80e670 100755 --- a/tests/geo.bats +++ b/tests/geo.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run geo update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/movies.bats b/tests/movies.bats index 7f0d861..e8e62c9 100755 --- a/tests/movies.bats +++ b/tests/movies.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run movies update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/newton.bats b/tests/newton.bats index 6e666f6..2eb3c57 100755 --- a/tests/newton.bats +++ b/tests/newton.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run newton update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/qrify.bats b/tests/qrify.bats index 794df7e..f55d2ec 100755 --- a/tests/qrify.bats +++ b/tests/qrify.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run qrify update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/short.bats b/tests/short.bats index cf8092b..8f7ddf3 100755 --- a/tests/short.bats +++ b/tests/short.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run short update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/siteciphers.bats b/tests/siteciphers.bats index fa38bd7..e7c0134 100755 --- a/tests/siteciphers.bats +++ b/tests/siteciphers.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run siteciphers update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "No arguments prints usage instructions" { diff --git a/tests/stocks.bats b/tests/stocks.bats index 58b5a23..f604706 100755 --- a/tests/stocks.bats +++ b/tests/stocks.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run stocks update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/taste.bats b/tests/taste.bats index c0f649c..cfc23c2 100755 --- a/tests/taste.bats +++ b/tests/taste.bats @@ -7,9 +7,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run taste update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/todo.bats b/tests/todo.bats index 34ac5d5..aa678e1 100755 --- a/tests/todo.bats +++ b/tests/todo.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run todo update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } diff --git a/tests/weather.bats b/tests/weather.bats index 293ad29..bb64da2 100755 --- a/tests/weather.bats +++ b/tests/weather.bats @@ -5,9 +5,11 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run weather update [ "$status" -eq 0 ] [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" { diff --git a/tests/ytview.bats b/tests/ytview.bats index a55ee0b..e29dd4d 100755 --- a/tests/ytview.bats +++ b/tests/ytview.bats @@ -5,8 +5,10 @@ } @test "Check for latest version of bash-snippets on update" { + if [[ "$(uname)" == "Linux" ]];then run ytview update [ "$output" = "Bash-Snippets is already the latest version" ] +fi } @test "The -h option should print usage" {