From deb01e68341def19c1ba0f0855f088543dccf574 Mon Sep 17 00:00:00 2001 From: Alex Thiessen Date: Sun, 5 Apr 2020 21:31:45 +0200 Subject: [PATCH] test/plugins/base: Adjust `myip` expected output The `myip()` function outputs colored text while the test doesn't expect this and fails when run. Also, strings with blanks were compared while quotes around one of them was missing, so the test was bogus anyway. Fix this, too. The test wasn't run in CI builds until now, apparently. --- test/plugins/base.plugin.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugins/base.plugin.bats b/test/plugins/base.plugin.bats index 3988831f..01a61434 100755 --- a/test/plugins/base.plugin.bats +++ b/test/plugins/base.plugin.bats @@ -23,7 +23,7 @@ load ../../plugins/available/base.plugin run myip assert_success declare -r mask_ip=$(echo $output | tr -s '[0-9]' '?') - [[ $mask_ip == 'Your public IP is: ?.?.?.?' ]] + [[ "$mask_ip" == "Your public IP is: ${bold_green}?.?.?.?${normal}" ]] } @test 'plugins base: pickfrom()' {