-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[test] Use dd instead of head -c. #32421
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
I wonder if it really is more portable ... |
@swift-ci please test Windows platform |
(I've briefly thought about whether py versions of the tools tests expect might be a good idea, but that's another kettle of fish...) |
@swift-ci please test |
Build failed |
Okay, Mac OS X |
d067457
to
6c2fb78
Compare
Updated to use |
|
The lit shell does support redirection and I remember seeing something mentioned somewhere about that construction being permitted, but documentation is rather vague about what the lit shell actually supports. Let me do some research. |
6c2fb78
to
c733c2f
Compare
head -c, to print the specified number of bytes, is a GNU extension. Using dd for the same task should be somewhat more portable. Mac OS X does not have status=none, so redirect the status output away instead. Despite appearances, redirecting with the Bourne shell-ism `2>/dev/null` is fine on Windows since Windows executes with the internal lit shell runner, which translates `/dev/null` to a temporary file.
c733c2f
to
18ecb1e
Compare
So, I've done so here. Sorry for the confusion! |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test Windows platform |
head -c, to print the specified number of bytes, is a GNU extension.
Using dd for the same task should be somewhat more portable.