aboutsummaryrefslogtreecommitdiff
path: root/doc/articles
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2015-06-15 12:52:07 +1000
committerAndrew Gerrand <adg@golang.org>2015-06-15 03:13:28 +0000
commit7d48237f7f6cb4fe9a47d9e2f0f3c5df481ea775 (patch)
tree42e12100d9904dd5ac9aa34606567ad8ad3e6785 /doc/articles
parent0ee92cf9c5684ff40a732ab0a93e2e02f63daf0d (diff)
downloadgo-7d48237f7f6cb4fe9a47d9e2f0f3c5df481ea775.tar.xz
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 <adg@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'doc/articles')
-rwxr-xr-xdoc/articles/wiki/test.bash6
1 files changed, 6 insertions, 0 deletions
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