-
Notifications
You must be signed in to change notification settings - Fork 735
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
Another mechanism for command extraction during tests #1445
Comments
Does it work within Docker on Windows? |
I don't have Windows at hand but since the base image in the dockerfile is But still such commands (with square brackets, semicolons and other special characters) makes directory/file names less readable (in my opinion, of course). So I'm curious whether it's a good idea to make a more general way of getting commands during tests (not from directory paths)? And if the decision is that extracting commands from directories' names is fine then this thing
still should be fixed (I could prepare PR). |
@max-dw-i It is pretty simple the way things are now. |
We should probably run it through a "slugify" like filter. |
At the moment commands are extracted from directory names during tests. It works nice when the command does not have any 'special' characters in it. But some commands do have 'special' characters. For example, command
:put [:resolve ...]
onmikrotik_routeros
. On LInux it's ok but Windows won't even allow to make a directory/file with such characters in the name.Even if we are going to use only Linux, it's still broken here cause
glob
treats square brackets specially.Maybe it makes sense to add a new file with the
*.cmd
extension (similar to current*.raw
,*.yml
) with the test command in it. Or another way to use tests for commands with 'special' characters.The text was updated successfully, but these errors were encountered: