diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-08-28 15:12:30 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-08-28 16:06:16 +0000 |
commit | bb619f5ca782ab56dbb189f0281e8afd5025ced3 (patch) | |
tree | d6f498bea2d7f18d8949f845f20bb72f86d0ce6d /tests.branching | |
parent | f2415383628cb22c5646d96b0e7bbfd6d0629072 (diff) | |
download | morph-bb619f5ca782ab56dbb189f0281e8afd5025ced3.tar.gz |
Create mine directory if it does not exists when running "morph init"
Until now, morph failed when the mine directory did not exist. However,
there is no good reason why it can't attempt to create it.
Diffstat (limited to 'tests.branching')
-rw-r--r-- | tests.branching/init-newdir.exit | 1 | ||||
-rwxr-xr-x | tests.branching/init-newdir.script | 6 | ||||
-rw-r--r-- | tests.branching/init-newdir.stderr | 1 | ||||
-rw-r--r-- | tests.branching/init-newdir.stdout | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests.branching/init-newdir.exit b/tests.branching/init-newdir.exit deleted file mode 100644 index d00491fd..00000000 --- a/tests.branching/init-newdir.exit +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/tests.branching/init-newdir.script b/tests.branching/init-newdir.script index 3bb4a1ba..70c8bb87 100755 --- a/tests.branching/init-newdir.script +++ b/tests.branching/init-newdir.script @@ -17,8 +17,8 @@ set -eu -# Test that "morph init" gives an error when given the name of a -# directory that does not exist yet. +# Test that "morph init" works if given a directory that +# does not exist yet. "$SRCDIR/scripts/test-morph" init "$DATADIR/foo" - +"$SRCDIR/scripts/list-tree" "$DATADIR/foo" diff --git a/tests.branching/init-newdir.stderr b/tests.branching/init-newdir.stderr deleted file mode 100644 index 066d69c0..00000000 --- a/tests.branching/init-newdir.stderr +++ /dev/null @@ -1 +0,0 @@ -ERROR: can only initialize an existing empty directory: TMP/foo diff --git a/tests.branching/init-newdir.stdout b/tests.branching/init-newdir.stdout new file mode 100644 index 00000000..e7922ee1 --- /dev/null +++ b/tests.branching/init-newdir.stdout @@ -0,0 +1,2 @@ +d . +d ./.morph |