Mercurial > hg-stable
comparison tests/test-run-tests.t @ 27057:c281c20ad0ad
test-run-tests: conditionalize the $TESTDIR check for Windows separator
The variable uniformly uses '\' separators, so the straight equality check with
'/' separating the last component fails. It also doesn't like having the quote
appear in the middle of the string when testing.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 16 Nov 2015 16:56:00 -0500 |
parents | 39577d4520ab |
children | a4e3dec3010e |
comparison
equal
deleted
inserted
replaced
27056:01489fa0bbbe | 27057:c281c20ad0ad |
---|---|
598 $ cat > test-runtestdir.t <<EOF | 598 $ cat > test-runtestdir.t <<EOF |
599 > - $TESTDIR, in which test-run-tests.t is placed | 599 > - $TESTDIR, in which test-run-tests.t is placed |
600 > - \$TESTDIR, in which test-runtestdir.t is placed (expanded at runtime) | 600 > - \$TESTDIR, in which test-runtestdir.t is placed (expanded at runtime) |
601 > - \$RUNTESTDIR, in which run-tests.py is placed (expanded at runtime) | 601 > - \$RUNTESTDIR, in which run-tests.py is placed (expanded at runtime) |
602 > | 602 > |
603 > #if windows | |
604 > $ test "\$TESTDIR" = "$TESTTMP\anothertests" | |
605 > #else | |
603 > $ test "\$TESTDIR" = "$TESTTMP"/anothertests | 606 > $ test "\$TESTDIR" = "$TESTTMP"/anothertests |
607 > #endif | |
604 > $ test "\$RUNTESTDIR" = "$TESTDIR" | 608 > $ test "\$RUNTESTDIR" = "$TESTDIR" |
605 > $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py | 609 > $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py |
606 > #!/usr/bin/env python | 610 > #!/usr/bin/env python |
607 > # | 611 > # |
608 > # check-code - a style and portability checker for Mercurial | 612 > # check-code - a style and portability checker for Mercurial |