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.
pull/1547/head
Alex Thiessen 2020-04-05 21:31:45 +02:00
parent 88231867b6
commit deb01e6834
No known key found for this signature in database
GPG Key ID: 6C90AE2B18A1CF5B
1 changed files with 1 additions and 1 deletions

View File

@ -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()' {