Fabian Boehm
e66f6878b5
Make tests usable with path with spaces
...
This is somewhat subtle:
The #RUN line in a littlecheck file will be run by a posix shell,
which means the substitutions will also be mangled by it.
Now, we *have* shell-quoted them, but unfortunately what we need is to
quote them for inside a pre-existing layer of quotes, e.g.
# RUN: fish -C 'set -g fish %fish'
here, %fish can't be replaced with `'path with spaces/fish'`, because
that ends up as
# RUN: fish -C 'set -g fish 'path with spaces/fish''
which is just broken.
So instead, we pass it as a variable to that fish:
# RUN: fish=%fish fish...
In addition, we need to not mangle the arguments in our test_driver.
For that, because we insist on posix shell, which has only one array,
and we source a file, we *need* to stop having that file use
arguments.
Which is okay - test_env.sh could previously be used to start a test,
and now it no longer can because that is test_*driver*.sh's job.
For the interactive tests, it's slightly different:
pexpect.spawn(foo) is sensitive to shell metacharacters like space.
So we shell-quote it.
But if you pass any args to pexpect.spawn, it no longer uses a shell,
and so we cannot shell-quote it.
There could be a better way to fix this?
2025-01-01 16:45:43 +01:00
..
2019-06-25 22:31:06 +02:00
2025-01-01 16:45:43 +01:00
2024-04-13 15:33:05 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-18 23:27:05 +02:00
2024-04-26 18:15:47 +02:00
2025-01-01 16:45:43 +01:00
2024-12-29 13:37:28 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2019-11-02 16:48:08 -07:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-08-24 08:30:52 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-06-06 16:47:39 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-05-25 13:20:05 +02:00
2024-05-06 17:00:45 +02:00
2024-11-11 17:56:57 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-09-18 22:27:00 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-25 21:52:56 +02:00
2024-04-12 12:28:22 +02:00
2024-04-13 15:33:05 +02:00
2024-05-26 22:06:11 -05:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-06-11 16:55:11 +02:00
2024-11-09 08:16:08 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-12-02 19:06:14 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-21 14:35:13 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-10-13 10:44:38 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-21 14:25:54 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-21 14:25:54 +02:00
2024-04-21 14:25:54 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-05-03 08:39:05 +02:00
2024-11-16 13:05:44 +01:00
2024-11-13 17:48:15 +01:00
2024-04-12 12:28:22 +02:00
2024-12-31 13:04:28 +01:00
2024-12-08 15:27:08 +01:00
2024-12-30 10:50:38 +01:00
2024-12-30 10:50:38 +01:00
2024-05-07 17:55:29 +02:00
2024-12-27 21:02:38 +01:00
2024-11-14 13:44:49 -06:00
2024-12-30 14:20:05 +01:00
2024-04-19 12:05:27 +02:00
2024-05-13 10:44:12 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-12-29 22:11:34 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-12-17 16:44:34 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00