Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion test/plugins/windows-unlisted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/<arch>`. Later
# versions name the deciding reason: `plugin "bowrain" has no build for
# windows/<arch>`. 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
Expand Down
Loading