summaryrefslogtreecommitdiff
path: root/tests.branching/init-nonempty.script
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-14 16:51:48 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-14 17:02:58 +0000
commit70564c6457b732e1dd35384971da5df3c5a1665b (patch)
treefec929625b46df3eca62f4f316bef90f6128c51a /tests.branching/init-nonempty.script
parent4a2b2aa38b85971b72c925eea5ca18767c63cc50 (diff)
downloadmorph-70564c6457b732e1dd35384971da5df3c5a1665b.tar.gz
Tidy up command tests
Be consistent about placement of test description, blank lines, etc.
Diffstat (limited to 'tests.branching/init-nonempty.script')
-rwxr-xr-xtests.branching/init-nonempty.script7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests.branching/init-nonempty.script b/tests.branching/init-nonempty.script
index 959da028..c5c1947c 100755
--- a/tests.branching/init-nonempty.script
+++ b/tests.branching/init-nonempty.script
@@ -1,4 +1,5 @@
#!/bin/sh
+#
# Copyright (C) 2012 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
@@ -15,10 +16,10 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-set -eu
+## Test that "morph init" fails when given the name of an existing,
+## non-empty directory.
-# Test that "morph init" fails when given the name of an existing,
-# non-empty directory.
+set -eu
touch "$DATADIR/workspace/foo"
"$SRCDIR/scripts/test-morph" init "$DATADIR/workspace"