changeset 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 01489fa0bbbe
children 616ea95c8f11
files tests/test-run-tests.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-run-tests.t	Mon Nov 09 17:15:36 2015 -0500
+++ b/tests/test-run-tests.t	Mon Nov 16 16:56:00 2015 -0500
@@ -600,7 +600,11 @@
   > - \$TESTDIR, in which test-runtestdir.t is placed (expanded at runtime)
   > - \$RUNTESTDIR, in which run-tests.py is placed (expanded at runtime)
   > 
+  > #if windows
+  >   $ test "\$TESTDIR" = "$TESTTMP\anothertests"
+  > #else
   >   $ test "\$TESTDIR" = "$TESTTMP"/anothertests
+  > #endif
   >   $ test "\$RUNTESTDIR" = "$TESTDIR"
   >   $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py
   >   #!/usr/bin/env python