-
Notifications
You must be signed in to change notification settings - Fork 263
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
Conversation
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.
@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.
Pls rerun |
|
||
func fileNotFoundErrorCheck(out test.KnRunResult, filePath string) cmp.Comparison { | ||
result := util.ContainsAllIgnoreCase(out.Stderr, "no", "such", "file", "directory", filePath) | ||
if result() == cmp.ResultSuccess { |
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.
I wonder if that shouldn't be rather == windows
check. Well the comment should be a few lines below. :)
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.
I added a comment for clarity
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.
OK, thanks!
@vyasgun should be used here as well. https://github.com/knative/client/blob/main/test/e2e/service_import_test.go#L93 |
24cb7f9
to
5a481af
Compare
@dsimansk I called the same function in the service_import_test.go file |
a40c8c8
to
7f14d15
Compare
I see now, sorry my bad. I kind of haven't noticed it's another file. :) |
/approve |
[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 |
…1575) * Fix for file not found error message discrepancy in windows * Added comment
…1575) (#967) * Fix for file not found error message discrepancy in windows * Added comment Co-authored-by: Gunjan Vyas <[email protected]>
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]>
Description
Added file not found error check for windows specific message
Changes
Reference
Fixes #