1
0
mirror of https://github.com/golang/go synced 2024-11-27 01:21:18 -07:00

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>
This commit is contained in:
Andrew Gerrand 2015-06-15 12:52:07 +10:00
parent 0ee92cf9c5
commit 7d48237f7f

View File

@ -4,6 +4,12 @@
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
set -e set -e
if ! which patch > /dev/null; then
echo "Skipping test; patch command not found."
exit 0
fi
wiki_pid= wiki_pid=
cleanup() { cleanup() {
kill $wiki_pid kill $wiki_pid