Commit Graph

5 Commits

Author SHA1 Message Date
FUJIWARA Katsunori
8fe63fa17c tests: use double quote to quote arguments in hook for portability
On windows, single quote doesn't work as quote character in hook
command line, because "cmd.exe" doesn't recognize it as quoting
character. And this causes failure of test.

This patch uses double quote to quote arguments in hook instead of
single quote for portability.

Even though single quotes for "[hooks] pretxncommit" in
test-clone-pull-corruption.t seems to work correctly (may MinGW sh
treat specially ?) AFAIK, this patch also replaces them by double
quotes for consistency.
2015-04-23 22:39:21 +09:00
Adrian Buehlmann
f5cf6e558b test-clone-pull-corruption: adapt for Windows 2012-06-15 18:56:16 +02:00
Mads Kiilerich
fa1c4e5ebe tests: add missing trailing 'cd ..'
Many tests didn't change back from subdirectories at the end of the tests ...
and they don't have to. The missing 'cd ..' could always be added when another
test case is added to the test file.

This change do that tests (99.5%) consistently end up in $TESTDIR where they
started, thus making it simpler to extend them or move them around.
2012-06-11 01:40:51 +02:00
Mads Kiilerich
a144f886ca tests: use 'hghave system-sh' to guard tests that requires sh in system() 2011-11-07 03:14:55 +01:00
Matt Mackall
cd62df7450 tests: unify test-clone-pull-corruption 2010-09-26 13:41:32 -05:00