]> scripts.mit.edu Git - wizard.git/commitdiff
Add missing dirname stanza to docs.
authorEdward Z. Yang <ezyang@mit.edu>
Sun, 4 Sep 2011 17:07:05 +0000 (13:07 -0400)
committerEdward Z. Yang <ezyang@mit.edu>
Sun, 4 Sep 2011 17:07:05 +0000 (13:07 -0400)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
doc/create.rst
tests/prepare-upgrade.sh

index 96401c8ffe53055759a3e7f0321948e44a8f142a..bb4f2ba7b6f943ed42ce1c30e4722e6dc27fb815 100644 (file)
@@ -283,6 +283,7 @@ create a test script in :file:`tests`; :file:`tests/test-install-wordpress.sh`
 in the case of Wordpress.  It will look something like::
 
     #!/bin/bash -e
+    cd `dirname $0`
 
     DEFAULT_HEAD=1
     TESTNAME="install_wordpress"
@@ -290,6 +291,13 @@ in the case of Wordpress.  It will look something like::
 
     wizard install "wordpress-$VERSION-scripts" "$TESTDIR" --non-interactive -- --title="My Blog"
 
+.. note::
+
+    As you develop more test-scripts, you may find that you are
+    frequently copy pasting install commands.  In this case, it may be
+    useful to create a 'wordpress-install' helper shell fragment and
+    source it whenever you need a vanilla installation.
+
 ``DEFAULT_HEAD=1`` indicates that this script can perform a reasonable
 operation without any version specified (since we haven't tagged any of our
 commits yet, we can't use the specific version functionality; not that we'd want
index 1e028f97b902b36c04c3a7c7e0bd7c2d599249b8..7d345051faf8f2aafd174f9fd94dfb56925f09a1 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+cd `dirname $0`
 set -e
 
 APP="$1"