tests: quote variable passed to shell test command
authorYuya Nishihara <yuya@tcha.org>
Sun, 08 Apr 2018 12:30:59 +0900
changeset 37475 152f1b47e0ad
parent 37474 d33997123ea5
child 37476 e9dea82ea1f3
tests: quote variable passed to shell test command
tests/helpers-testrepo.sh
--- a/tests/helpers-testrepo.sh	Sun Apr 08 11:23:55 2018 +0900
+++ b/tests/helpers-testrepo.sh	Sun Apr 08 12:30:59 2018 +0900
@@ -10,7 +10,7 @@
 # system mercurial installation, and may require extensions or settings from
 # the system installation.
 
-if [ -n $HGTESTEXTRAEXTENSIONS ]; then
+if [ -n "$HGTESTEXTRAEXTENSIONS" ]; then
     for extension in $HGTESTEXTRAEXTENSIONS; do
         extraoptions="$extraoptions --config extensions.$extension=!"
     done