Skip to content
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

reftest: update commands prefix replacement #5657

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Sep 8, 2023

Now it handles sandbox prefix, and command prefixes that are not a print of a subprocess (in an error message for ex).

@rjbou rjbou added the AREA:TEST label Sep 8, 2023
*)
seq [
opt @@ char '"';
repn @@ seq [ char '/'; repn @@ diff any (alt [ space; char '/']) ];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It relies on no space on command full path

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably exclude " and ' as well

tests/reftests/run.ml Outdated Show resolved Hide resolved
tests/reftests/run.ml Outdated Show resolved Hide resolved
tests/reftests/run.ml Outdated Show resolved Hide resolved
*)
seq [
opt @@ char '"';
repn @@ seq [ char '/'; repn @@ diff any (alt [ space; char '/']) ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably exclude " and ' as well

@rjbou rjbou mentioned this pull request Sep 8, 2023
2 tasks
Now it handles sandbox prefix, and command prefixes that are not a print
of a subprocess (in an error message for ex).
@kit-ty-kate
Copy link
Member

Thanks!

@kit-ty-kate kit-ty-kate merged commit 57d312e into ocaml:master Sep 11, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants