diff --git a/test/plugins/windows-unlisted.sh b/test/plugins/windows-unlisted.sh index 7ef9e59..b8f9e6f 100755 --- a/test/plugins/windows-unlisted.sh +++ b/test/plugins/windows-unlisted.sh @@ -14,7 +14,18 @@ if [ "${rc}" -eq 0 ]; then echo "::error::bowrain installed on Windows, so a Windows build is listed again. Restore the default plugins input in the Windows jobs and delete test/plugins/windows-unlisted.sh." exit 1 fi -if ! grep -q 'no version of plugin "bowrain"' <<< "${out}" || ! grep -q 'for platform windows/' <<< "${out}"; then +# kapi words this refusal in one of two ways. Up to 1.4.0-rc5 it prints +# `no version of plugin "bowrain" ... for platform windows/`. Later +# versions name the deciding reason: `plugin "bowrain" has no build for +# windows/`. Any other failure (the network, a kapi too old for every +# listed version) is not the state this script asserts. +earlier() { + grep -q 'no version of plugin "bowrain"' <<< "${out}" && grep -q 'for platform windows/' <<< "${out}" +} +later() { + grep -q 'plugin "bowrain" has no build for windows/' <<< "${out}" +} +if ! earlier && ! later; then echo "::error::bowrain failed to install on Windows for a reason other than a missing Windows build." exit 1 fi