Skip to content

Commit

Permalink
doc/articles/wiki: don't run tests when 'patch' command unavailable
Browse files Browse the repository at this point in the history
Change-Id: I21cfea3eadb37904252900324c23e2664b121bbb
Reviewed-on: https://go-review.googlesource.com/11099
Run-TryBot: Andrew Gerrand <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Andrew Gerrand <[email protected]>
  • Loading branch information
adg committed Jun 15, 2015
1 parent 0ee92cf commit 7d48237
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/articles/wiki/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d48237

Please sign in to comment.