test-run-tests: conditionalize the $TESTDIR check for Windows separator
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 16 Nov 2015 16:56:00 -0500
changeset 27057 c281c20ad0ad
parent 27056 01489fa0bbbe
child 27058 616ea95c8f11
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.
tests/test-run-tests.t
--- 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