From 3d3eac1dff1a2a52ea9fa9066a0397d76a3b638a Mon Sep 17 00:00:00 2001 From: Aaron Lerner Date: Wed, 7 Aug 2019 01:26:55 -0700 Subject: [PATCH] Only test in watch mode if passed test flag (#343) --- hack/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/build.sh b/hack/build.sh index e34b6c248..b75d08797 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -49,7 +49,10 @@ run() { if $(has_flag --watch -w); then # Build and test first go_build - go_test + + if $(has_flag --test -t); then + go_test + fi # Go in endless loop, to be stopped with CTRL-C watch