Patchwork [2,of,3,osx-packaging] osx: use more paranoid quoting in test

login
register
mail settings
Submitter Augie Fackler
Date March 20, 2017, 10:03 p.m.
Message ID <58e38cc8a32128436c27.1490047384@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/19477/
State Accepted
Headers show

Comments

Augie Fackler - March 20, 2017, 10:03 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1490046587 14400
#      Mon Mar 20 17:49:47 2017 -0400
# Node ID 58e38cc8a32128436c27c90f431b150acd925024
# Parent  fe228efc0c3eabfdda7b9988b776412f03fbf717
osx: use more paranoid quoting in test

Patch

diff --git a/tests/test-mac-packages.t b/tests/test-mac-packages.t
--- a/tests/test-mac-packages.t
+++ b/tests/test-mac-packages.t
@@ -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)