-
Notifications
You must be signed in to change notification settings - Fork 274
Use single quotes to make regression tests work on Windows #5580
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #5580 +/- ##
============================================
- Coverage 69.32% 32.27% -37.06%
============================================
Files 1241 983 -258
Lines 100406 83377 -17029
============================================
- Hits 69604 26907 -42697
- Misses 30802 56470 +25668
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Changes as described. I will take your word that they are necessary.
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.
Hi Michael,
Again many thanks for reactivating the tests on windows.
Good to go, just one problem with the jbmc-json-ui/pointer-simplification
test passing the wrong syntax to jq
on UNIX systems, causing jq
to throw syntax errors.
@@ -1,6 +1,6 @@ | |||
CORE | |||
test | |||
'.[] | select(has("result")) | .result | .[] | select(has("trace")) | .trace | .[] | select(has("value")) | .value | select(.name == "pointer") | {has_data: has("data")}' --json-ui --trace | |||
'.[] | select(has('result')) | .result | .[] | select(has('trace')) | .trace | .[] | select(has('value')) | .value | select(.name == 'pointer') | {has_data: has('data')}' --json-ui --trace |
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.
This seems to be tripping up all the UNIX builds now (ubuntu and osx).
Is there a way perhaps to have two of these commands, and dispatch based on OS detection at test runtime? I'm not sure we have one, but maybe it wouldn't be hard to come up with one?
If that's not possible/convenient for the time being, maybe this change could be reverted and the test marked as KNOWNBUG
on windows?
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.
Thank you for digging into this one, I was quite confused.
test.pl cannot cope with double quotes on some Windows-based platforms (including GitHub's Windows environment).
5aacd8a
to
92e3249
Compare
test.pl cannot cope with double quotes on some Windows-based platforms
(including GitHub's Windows environment).