-
Notifications
You must be signed in to change notification settings - Fork 187
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
Pypresso: Remove "test -a" and quote $@ #3292
Conversation
POSIX does not specify test for > 4 arguments: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
Codecov Report
@@ Coverage Diff @@
## python #3292 +/- ##
=======================================
+ Coverage 85% 86% +<1%
=======================================
Files 534 534
Lines 25510 25510
=======================================
+ Hits 21937 21939 +2
+ Misses 3573 3571 -2
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.
Thanks! We really need to work on #3242.
bors r+ |
3291: Factor out and test memcpy serialization r=RudolfWeeber a=fweik Description of changes: - This splits off the memcpy serialization used in the ghost communication and adds unit test for it. - Added customization point to opt-in to memcpy serialization for types that are not [TriviallyCopyable](https://en.cppreference.com/w/cpp/named_req/TriviallyCopyable), but serializes to a bounded size, like `boost::optional`. This is so we can use `optional` and `variant` in `ParticleProperties`, which is planned. 3292: Pypresso: Remove "test -a" and quote $@ r=jngrad a=hirschsn Description of changes: - Remove `test -a` since calls to test with more than 4 arguments are unspecified: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html - Quote `$@` to avoid splitting $@. Currently `./pypresso --gdb "test me.py"` will fail because tries to find the file `test`. Quoting avoids this. PR Checklist ------------ - [ ] Tests? - [ ] Interface - [ ] Core - [ ] Docs? Co-authored-by: Florian Weik <fweik@icp.uni-stuttgart.de> Co-authored-by: Steffen Hirschmann <steffen.hirschmann@ipvs.uni-stuttgart.de>
Build succeeded |
Description of changes:
test -a
since calls to test with more than 4 arguments are unspecified: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html$@
to avoid splitting $@. Currently./pypresso --gdb "test me.py"
will fail because tries to find the filetest
. Quoting avoids this.PR Checklist