Repository navigation
Enable run_tests in Windows CI - #1463
Conversation
9e8fd77 to
c42501c
Compare
|
TODO:
|
|
Let's add a which "unsets" the text attribute, which according to https://www.git-scm.com/docs/gitattributes#_text should preserve the line ends. Then we should keep all the files as they currently are, only using LF. Then let's commit a few files with CRLF to test that CR also works. And then all tests should behave exactly the same on Linux as on Windows. |
c42501c to
e06cb58
Compare
|
The Windows CI fails. But, I think it doesn't return a non-zero number, so the CI passes. cc @certik |
run_tests in Windows CI
Can the error be related to the check symbol with color? |
02e1277 to
bab0b16
Compare
|
I see, The error was because of this: |
|
|
||
| def color(value): | ||
| return "\033[" + str(int(value)) + "m" | ||
| return "" |
There was a problem hiding this comment.
Why we have the function if we are just going to return an empty string? Can we just replace, color(...) calls with "" instead? Or may be for Windows return an empty string but for other operating systems return "\033[" + str(int(value)) + "m".
There was a problem hiding this comment.
Yup, this was used for debugging purposes.
If this method is valid for fixing, then I thought to add an option --no-color to print the run_tests output without color and check symbol.
There was a problem hiding this comment.
I thought to add an option
--no-colorto print the output without color.
I think its already there? I have used it many times before.
There was a problem hiding this comment.
Do you mean, for run_tests?
There was a problem hiding this comment.
Yup, that is used for AST and ASR. But, I was thinking to add a new option in run_tests. Actually, I had problems with the run_tests output color in Windows and here in the CI, I had a problem with the check symbol. So, adding a new option would be the right choice for fixing both. But, I'm not sure.
bab0b16 to
e2aef23
Compare
e2aef23 to
ad6b324
Compare
No description provided.