Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t/README: hint about using $(pwd) rather than $PWD in tests
author
Johannes Sixt
<j6t@kdbg.org>
Tue, 11 Jan 2011 07:44:30 +0000
(08:44 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 11 Jan 2011 18:51:25 +0000
(10:51 -0800)
This adds just a "do it this way" instruction without a lot of explanation,
because the details are too complex to be explained at this point.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
e6ec2b6
)
diff --git
a/t/README
b/t/README
index 892d443f63428aea6d6b92458bdaa4575bc46da0..25f7d2d2e3cf70d54f5b854ad4199c831a74ae2a 100644
(file)
--- a/
t/README
+++ b/
t/README
@@
-283,6
+283,12
@@
Do:
Tests that are likely to smoke out future regressions are better
than tests that just inflate the coverage metrics.
Tests that are likely to smoke out future regressions are better
than tests that just inflate the coverage metrics.
+ - When a test checks for an absolute path that a git command generated,
+ construct the expected value using $(pwd) rather than $PWD,
+ $TEST_DIRECTORY, or $TRASH_DIRECTORY. It makes a difference on
+ Windows, where the shell (MSYS bash) mangles absolute path names.
+ For details, see the commit message of 4114156ae9.
+
Don't:
- exit() within a <script> part.
Don't:
- exit() within a <script> part.