Skip to content
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

Fix for file not found error message discrepancy in windows #1575

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

vyasgun
Copy link
Contributor

@vyasgun vyasgun commented Jan 24, 2022

Description

Added file not found error check for windows specific message

Changes

  • Added windows-specific string for non-existent file tests

Reference

Fixes #

Copy link
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vyasgun: 0 warnings.

In response to this:

Description

Added file not found error check for windows specific message

Changes

  • Added windows-specific string for non-existent file tests

Reference

Fixes #

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 24, 2022
@dsimansk
Copy link
Contributor

dsimansk commented Jan 24, 2022

Pls rerun ./hack/build.sh -c to regenerate code formatting for the code style check error.


func fileNotFoundErrorCheck(out test.KnRunResult, filePath string) cmp.Comparison {
result := util.ContainsAllIgnoreCase(out.Stderr, "no", "such", "file", "directory", filePath)
if result() == cmp.ResultSuccess {
Copy link
Contributor

@dsimansk dsimansk Jan 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that shouldn't be rather == windows check. Well the comment should be a few lines below. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a comment for clarity

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks!

@dsimansk
Copy link
Contributor

@vyasgun vyasgun force-pushed the pr/windows-test-fix branch from 24cb7f9 to 5a481af Compare January 24, 2022 13:58
@vyasgun
Copy link
Contributor Author

vyasgun commented Jan 24, 2022

@dsimansk I called the same function in the service_import_test.go file

@vyasgun vyasgun force-pushed the pr/windows-test-fix branch from a40c8c8 to 7f14d15 Compare January 24, 2022 14:15
@dsimansk
Copy link
Contributor

@vyasgun should be used here as well. https://github.com/knative/client/blob/main/test/e2e/service_import_test.go#L93

I see now, sorry my bad. I kind of haven't noticed it's another file. :)

@dsimansk
Copy link
Contributor

/approve
/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 24, 2022
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk, vyasgun

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 24, 2022
@knative-prow-robot knative-prow-robot merged commit ddbae2e into knative:main Jan 24, 2022
dsimansk pushed a commit to dsimansk/client that referenced this pull request Feb 16, 2022
…1575)

* Fix for file not found error message discrepancy in windows

* Added comment
openshift-merge-robot pushed a commit to openshift/knative-client that referenced this pull request Feb 17, 2022
…1575) (#967)

* Fix for file not found error message discrepancy in windows

* Added comment

Co-authored-by: Gunjan Vyas <[email protected]>
dsimansk added a commit to openshift/knative-client that referenced this pull request Mar 29, 2022
Fix for file not found error message discrepancy in windows (knative#1575) (#967)

Co-authored-by: Gunjan Vyas <[email protected]>

change display versions (knative#1601) (#985)

Co-authored-by: kobayashi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants