osx: use more paranoid quoting in test
authorAugie Fackler <augie@google.com>
Mon, 20 Mar 2017 17:49:47 -0400
changeset 31615 6dc8caccef8a
parent 31614 8e516f71577a
child 31616 6359976b43be
osx: use more paranoid quoting in test
tests/test-mac-packages.t
--- a/tests/test-mac-packages.t	Mon Mar 20 17:50:05 2017 -0400
+++ b/tests/test-mac-packages.t	Mon Mar 20 17:49:47 2017 -0400
@@ -2,15 +2,14 @@
 
   $ . "$TESTDIR/helpers-testrepo.sh"
 
-  $ OUTPUTDIR=`pwd`
+  $ OUTPUTDIR="`pwd`"
   $ export OUTPUTDIR
   $ KEEPMPKG=yes
   $ export KEEPMPKG
 
   $ cd "$TESTDIR"/..
-  $ rm -rf dist
-  $ make osx > $OUTPUTDIR/build.log 2>&1
-  $ cd $OUTPUTDIR
+  $ make osx > "$OUTPUTDIR/build.log" 2>&1
+  $ cd "$OUTPUTDIR"
   $ ls -d *.pkg
   Mercurial-*-macosx10.*.pkg (glob)