Skip to content

Commit 0d393e3

Browse files
author
dmullis
committed
Allow make.sh to pass args to the "go test" run that rebuilds SVG examples
1 parent 9423d12 commit 0d393e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎make.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ do
1616
done
1717

1818
# SVG examples/ regeneration.
19-
go test -run . -v -write
19+
#
20+
# If the command fails due to expected changes in SVG output, rerun
21+
# this script with "TEST_ARGS=-write" first on the command line.
22+
set -vx
23+
go test -run . -v ${TEST_ARGS}
2024

2125
(cd cmd/goat; go install)
2226

@@ -39,4 +43,3 @@ then
3943
# "Light" and "Dark" in Firefox's "Add-ons Manager".
4044
(echo '<!DOCTYPE html>'; marked -gfm README.md) >README.html
4145
fi
42-

0 commit comments

Comments
 (0)