]> Cypherpunks repositories - gostls13.git/commitdiff
doc/articles/wiki: don't run tests when 'patch' command unavailable
authorAndrew Gerrand <adg@golang.org>
Mon, 15 Jun 2015 02:52:07 +0000 (12:52 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 15 Jun 2015 03:13:28 +0000 (03:13 +0000)
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>
doc/articles/wiki/test.bash

index 8ecd666da348ce6089010f710473795f1da42e88..b1e89e9a22b00c46e2e1ad3299e7c5072613c4af 100755 (executable)
@@ -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