summaryrefslogtreecommitdiff
path: root/tests.branching
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2015-06-16 18:25:27 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-09-17 15:34:16 +0000
commita4d8098b229592db40565747b0444b518bf8a6eb (patch)
tree4eaf5f4fc030e79de989fcb2364b44e2d63c5ce3 /tests.branching
parent84e90eee377fde3d6a901db0b38d9d39e1b5399d (diff)
downloadmorph-a4d8098b229592db40565747b0444b518bf8a6eb.tar.gz
Remove foreach command
We're beginning a transition away from workspaces, foreach in particular is possibly one of the least used commands, and is only mentioned in tutorials explicitly marked as 'old'. Change-Id: I2c95ce689bb5550bf50feb6b55be6c58671c4c4a
Diffstat (limited to 'tests.branching')
-rw-r--r--tests.branching/foreach-handles-command-failure.exit1
-rwxr-xr-xtests.branching/foreach-handles-command-failure.script27
-rw-r--r--tests.branching/foreach-handles-command-failure.stderr1
-rw-r--r--tests.branching/foreach-handles-command-failure.stdout2
-rwxr-xr-xtests.branching/foreach-handles-full-urls.script27
-rw-r--r--tests.branching/foreach-handles-full-urls.stdout5
6 files changed, 0 insertions, 63 deletions
diff --git a/tests.branching/foreach-handles-command-failure.exit b/tests.branching/foreach-handles-command-failure.exit
deleted file mode 100644
index d00491fd..00000000
--- a/tests.branching/foreach-handles-command-failure.exit
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests.branching/foreach-handles-command-failure.script b/tests.branching/foreach-handles-command-failure.script
deleted file mode 100755
index 09674c03..00000000
--- a/tests.branching/foreach-handles-command-failure.script
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2012-2015 Codethink Limited
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-## Verify that "morph foreach" deals with failure in a grown-up way
-
-set -eu
-
-cd "$DATADIR/workspace"
-"$SRCDIR/scripts/test-morph" init
-"$SRCDIR/scripts/test-morph" checkout test:morphs master
-"$SRCDIR/scripts/test-morph" edit hello
-
-"$SRCDIR/scripts/test-morph" foreach git remote update non-existant-remote
diff --git a/tests.branching/foreach-handles-command-failure.stderr b/tests.branching/foreach-handles-command-failure.stderr
deleted file mode 100644
index c7b8316b..00000000
--- a/tests.branching/foreach-handles-command-failure.stderr
+++ /dev/null
@@ -1 +0,0 @@
-ERROR: Command failed at repo test:hello: git remote update non-existant-remote
diff --git a/tests.branching/foreach-handles-command-failure.stdout b/tests.branching/foreach-handles-command-failure.stdout
deleted file mode 100644
index d687996d..00000000
--- a/tests.branching/foreach-handles-command-failure.stdout
+++ /dev/null
@@ -1,2 +0,0 @@
-test:hello
-fatal: No such remote or remote group: non-existant-remote
diff --git a/tests.branching/foreach-handles-full-urls.script b/tests.branching/foreach-handles-full-urls.script
deleted file mode 100755
index 8fb18d75..00000000
--- a/tests.branching/foreach-handles-full-urls.script
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2012,2015 Codethink Limited
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-## morph foreach: should not break if we used a full URL for a repo
-
-set -eu
-
-cd "$DATADIR/workspace"
-"$SRCDIR/scripts/test-morph" init
-"$SRCDIR/scripts/test-morph" checkout file://$DATADIR/morphs master
-
-# This will fail if we get the directory name
-"$SRCDIR/scripts/test-morph" foreach -- git status
diff --git a/tests.branching/foreach-handles-full-urls.stdout b/tests.branching/foreach-handles-full-urls.stdout
deleted file mode 100644
index 6b8728d0..00000000
--- a/tests.branching/foreach-handles-full-urls.stdout
+++ /dev/null
@@ -1,5 +0,0 @@
-file://TMP/morphs
-On branch master
-Your branch is up-to-date with 'origin/master'.
-nothing to commit, working directory clean
-