diff options
Diffstat (limited to 'tests.branching')
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 - |