From 7d48237f7f6cb4fe9a47d9e2f0f3c5df481ea775 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 15 Jun 2015 12:52:07 +1000 Subject: [PATCH] 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 --- doc/articles/wiki/test.bash | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.48.1