-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 appveyor ci for round4 #2864
Conversation
c102e55
to
75a631c
Compare
Phew, we got green on AppVeyor! https://ci.appveyor.com/project/fluent/fluentd/builds/31285183 |
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.
commit message may have a typo. 75a631c
aortable -> sortable ?
@@ -196,7 +196,11 @@ def build_files(file) | |||
@file.seek(0) | |||
lines = @file.readlines | |||
assert_equal 2, lines.size | |||
assert_equal "valid_path\t000000000000000a\t000000000000000b\n", lines[0] | |||
if Fluent.windows? | |||
assert_equal "valid_path\t0000000000000000a\t000000000000000b\n", lines[0] |
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.
[question] Why it happens?
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'll dig it.
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.
Aha! I got it.
In Windows, it is also needed to use binmode for Tempfile! 👊
75a631c
to
5328234
Compare
Signed-off-by: Hiroshi Hatake <[email protected]>
Winsock generates the different error message than Linux's. Signed-off-by: Hiroshi Hatake <[email protected]>
Because these test cases should handle same timestamp. We should sort with another sortable key such as tag. Signed-off-by: Hiroshi Hatake <[email protected]>
In Windows, writing 0 contained contents should be written as binmode. Otherwise, it will cause corrupted contents. Signed-off-by: Hiroshi Hatake <[email protected]>
5328234
to
7560a48
Compare
I'll merge this PR after finishing CIs. 💪 |
Which issue(s) this PR fixes:
Related to #2854.
What this PR does / why we need it:
We should take care of AppVeyor CI result.
Docs Changes:
No needed.
Release Note:
None.