X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2FREADME;h=25f7d2d2e3cf70d54f5b854ad4199c831a74ae2a;hb=f577b92fe75643228674c0dcb2a4747587cf541d;hp=892d443f63428aea6d6b92458bdaa4575bc46da0;hpb=39f04dbaacbb21864547c8cf087697469666d21e;p=git.git diff --git a/t/README b/t/README index 892d443f6..25f7d2d2e 100644 --- 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. + - 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