From: Andrew Gerrand Date: Mon, 15 Jun 2015 02:52:07 +0000 (+1000) Subject: doc/articles/wiki: don't run tests when 'patch' command unavailable X-Git-Tag: go1.5beta1~260 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7d48237f7f6cb4fe9a47d9e2f0f3c5df481ea775;p=gostls13.git doc/articles/wiki: don't run tests when 'patch' command unavailable Change-Id: I21cfea3eadb37904252900324c23e2664b121bbb Reviewed-on: https://go-review.googlesource.com/11099 Run-TryBot: Andrew Gerrand TryBot-Result: Gobot Gobot Reviewed-by: Andrew Gerrand --- diff --git a/doc/articles/wiki/test.bash b/doc/articles/wiki/test.bash index 8ecd666da3..b1e89e9a22 100755 --- a/doc/articles/wiki/test.bash +++ b/doc/articles/wiki/test.bash @@ -4,6 +4,12 @@ # license that can be found in the LICENSE file. set -e + +if ! which patch > /dev/null; then + echo "Skipping test; patch command not found." + exit 0 +fi + wiki_pid= cleanup() { kill $wiki_pid