-
Notifications
You must be signed in to change notification settings - Fork 1.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
Don't assume $0 is the script source #1808
Don't assume $0 is the script source #1808
Conversation
e68888a
to
302610d
Compare
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.
/lgtm
So I can get this tektoncd/pipeline#1808 until merged
Part of our 'downstream' CI we reuse the `test/e2e-common.sh` functions, we have a script that source the test/e2e-common.sh and run with the downstream specifics functions. $0 in the e2e-common assume the script is run from `test/e2e-tests.sh` when our script which source test/e2e-tests.sh is something else somewhere else. Let's use git to safely detect the toplevel of the directory Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
Following commit 2af394c there was a `go get` left which wasnt removed. Since we have it in vendor directory we don't need to donwload it again. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
302610d
to
bf11611
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Changes
Don't assume $0 is the script source
Part of our 'downstream' CI we reuse the
test/e2e-common.sh
functions.We have a script that source the test/e2e-common.sh and run with the downstream
specifics functions.
$0 in the e2e-common assume the script is run from
test/e2e-tests.sh
when ourscript which source test/e2e-tests.sh is something else somewhere else.
Let use git to safely detect the toplevel of the directory from where we can
source the vendor directory.
Remove latest go get from there too
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Reviewer Notes
Release Notes