diff options
| author | Andrew Gerrand <adg@golang.org> | 2015-06-15 12:52:07 +1000 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2015-06-15 03:13:28 +0000 |
| commit | 7d48237f7f6cb4fe9a47d9e2f0f3c5df481ea775 (patch) | |
| tree | 42e12100d9904dd5ac9aa34606567ad8ad3e6785 | |
| parent | 0ee92cf9c5684ff40a732ab0a93e2e02f63daf0d (diff) | |
| download | go-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>
| -rwxr-xr-x | doc/articles/wiki/test.bash | 6 |
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 |
