-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: pass TAGS to test target #9421
Conversation
LGTM but this should go to master and you should at least fix testrace as On Sep 16, 2016 02:16, "Jingguo Yao" notifications@github.com wrote:
|
7dec911
to
ccb7928
Compare
68ee110
to
ce96e99
Compare
Pass TAGS to all |
LGTM cc @bdarnell |
LGTM. If we support passing tags into |
$(GO) test -i ./... | ||
@build/check-style.sh | ||
$(GO) test -i -tags '$(TAGS)' ./... | ||
@build/check-style.sh ''\''$(TAGS)'\''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This quoting doesn't look right. Why can't it just be '$(TAGS)` like the rest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, your are right. Fixed in the commit.
@@ -3,6 +3,7 @@ | |||
set -euo pipefail | |||
|
|||
export PKG=${PKG:-./...} | |||
export TAGS=${1:-"''"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And why isn't this ${1:-}
? You're quoting the expansion below so extra quotes shouldn't be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the new commit.
ce96e99
to
caaf787
Compare
It is worthwhile to mention that
So we need to use space-separated tag list for |
Why do we need to pass tags to |
@bdarnell OK. So what we are going to do? Is this PR OK for merge? Or should I remove the code which passes TAGS from Now the CircleCI build fails with such a message. I think that it is not caused by my PR:
|
Yes, remove the part related to |
caaf787
to
9b25d22
Compare
|
Thanks! |
pass TAGS to
test
target inMakefile
This change is