-
Notifications
You must be signed in to change notification settings - Fork 772
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
Fixes fixture test for build context #577
Conversation
b5cde51
to
cd03085
Compare
Tests fail? |
a14699e
to
cd64d2a
Compare
script/test/cmd/fix_detached_head.sh
Outdated
# Only do something if the HEAD is detached. | ||
if [ $(git rev-parse --abbrev-ref HEAD) == 'HEAD' ]; then | ||
# If the current detached HEAD equals the master, then check out the master. | ||
[[ $(git rev-parse HEAD) == $(git rev-parse master) ]] && git checkout master |
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.
not tested, but i think changing to master will not test the current PR
@@ -0,0 +1,14 @@ | |||
#!/usr/bin/env bash | |||
|
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.
Would be good to leave a little note where this is coming from :) Source.
Also, missing license!
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.
@cdrage added license and note
cd64d2a
to
f186927
Compare
script/test/cmd/fix_detached_head.sh
Outdated
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
#Reference Link: https://github.com/theochem/horton/blob/master/tools/qa/fix_detached_head.sh |
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.
Missing space
Other than my comment, LGTM. Side note: Can't wait for #89 is fixed so we don't run into these issues in the future 👍 |
f186927
to
af36e61
Compare
@cdrage done |
.travis.yml
Outdated
@@ -17,6 +17,7 @@ matrix: | |||
|
|||
install: | |||
- true | |||
- script/test/cmd/fix_detached_head.sh |
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.
Argh. I should of added a comment here.
Can you put:
// This is required because sometimes Travis ends up in a detached HEAD state after git clone
?
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.
yeah sure
Resolves kubernetes#576 This PR includes `output-os-template.json` in `nginx-node-redis` example, which is basically output template contains `%URI%` and `%REF%` variables which will be filled while initializing test cases and new will be stored as `/tmp/output-os.json` This will remove the problem of git uri and ref.
af36e61
to
aacde86
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!
Resolves #576
This PR includes
output-os-template.json
innginx-node-redis
example,which is basically output template contains
%URI%
and%REF%
variableswhich will be filled while initializing test cases and new will be stored as
/tmp/output-os.json
This will remove the problem of git uri and ref.