changeset 20002:83347ff50134 stable

tests: quote environment variable to extract wildcard on MinGW environment On MinGW environment, the command line below in test script can't extract wildcard "*" and remove target files correctly. $ rm $ENVVAR/foo/bar.* To extract wildcard, environment variable should be quoted by double quotation like below: $ rm "$ENVVAR"/foo/bar.* This patch also omits "-f" of "rm" to know whether files are removed or not by exit code of it.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sun, 10 Nov 2013 16:48:24 +0900
parents a1f99a7f2d72
children dcd3c47e464b
files tests/test-extension.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-extension.t	Sun Nov 10 16:48:24 2013 +0900
+++ b/tests/test-extension.t	Sun Nov 10 16:48:24 2013 +0900
@@ -230,7 +230,7 @@
   $TESTTMP/a
 
 #if no-py3k
-  $ rm -f $TESTTMP/extroot/foo.*
+  $ rm "$TESTTMP"/extroot/foo.*
   $ cat > $TESTTMP/extroot/foo.py <<EOF
   > # test relative import
   > buf = []