]> git.lizzy.rs Git - rust.git/commit
test: Convert Window path to MSYS path
authorklutzy <klutzytheklutzy@gmail.com>
Sat, 23 Aug 2014 06:58:38 +0000 (15:58 +0900)
committerklutzy <klutzytheklutzy@gmail.com>
Sat, 23 Aug 2014 07:19:07 +0000 (16:19 +0900)
commit7eb35bc2a9dcc0a7cd91fb247d156eb87df25b27
tree4b69e9e42ef23c64a661e16f0afafca26c4b1fcb
parenta3d77e616bb8455e158c22a379b655437916d404
test: Convert Window path to MSYS path

When MSYS shell executes program, if its arguments look like MSYS paths,
MSYS automatically converts them into Windows paths.
For example, `/c/path:/d/path` becomes `C:\path;D:\path`.
However, if there is only one path e.g. `/c/path`, it becomes `C:/path`.

maketest.py reverts the behavior to reduce confusion between MSYS and
Windows, but it didn't handle the `/c/path` case. This patch fixes the
issue.

Fixes #15297
Fixes #15250
src/etc/maketest.py