Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-11-13 02:08:14 +0300
committerJunio C Hamano <gitster@pobox.com>2019-11-21 03:41:51 +0300
commitc245e58bb6a76e807f46b312e9a4edb2ff76f2b6 (patch)
tree05b93df1e298eb292194d5a27ea20b7f7612c047 /t/t5520-pull.sh
parenta1a64fdd0aa6e3fd450c06885f30225ebea6b74f (diff)
t5520: remove redundant lines in test cases
In the previous patches, the mechanical application of changes left some duplicate statements in the test case which were not strictly incorrect but were redundant and possibly misleading. Remove these duplicate statements so that it is clear that the intent behind the tests are that the content of the file stays the same throughout the whole test case. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5520-pull.sh')
-rwxr-xr-xt/t5520-pull.sh8
1 files changed, 0 insertions, 8 deletions
diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index c9e4eec004..ef3dbc201a 100755
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
@@ -147,7 +147,6 @@ test_expect_success 'fail if wildcard spec does not match any refs' '
test_cmp expect file &&
test_must_fail git pull . "refs/nonexisting1/*:refs/nonexisting2/*" 2>err &&
test_i18ngrep "no candidates for merging" err &&
- echo file >expect &&
test_cmp expect file
'
@@ -161,7 +160,6 @@ test_expect_success 'fail if no branches specified with non-default remote' '
test_config branch.test.remote origin &&
test_must_fail git pull test_remote 2>err &&
test_i18ngrep "specify a branch on the command line" err &&
- echo file >expect &&
test_cmp expect file
'
@@ -174,7 +172,6 @@ test_expect_success 'fail if not on a branch' '
test_cmp expect file &&
test_must_fail git pull 2>err &&
test_i18ngrep "not currently on a branch" err &&
- echo file >expect &&
test_cmp expect file
'
@@ -188,7 +185,6 @@ test_expect_success 'fail if no configuration for current branch' '
test_cmp expect file &&
test_must_fail git pull 2>err &&
test_i18ngrep "no tracking information" err &&
- echo file >expect &&
test_cmp expect file
'
@@ -202,7 +198,6 @@ test_expect_success 'pull --all: fail if no configuration for current branch' '
test_cmp expect file &&
test_must_fail git pull --all 2>err &&
test_i18ngrep "There is no tracking information" err &&
- echo file >expect &&
test_cmp expect file
'
@@ -215,7 +210,6 @@ test_expect_success 'fail if upstream branch does not exist' '
test_cmp expect file &&
test_must_fail git pull 2>err &&
test_i18ngrep "no such ref was fetched" err &&
- echo file >expect &&
test_cmp expect file
'
@@ -685,10 +679,8 @@ test_expect_success 'pull --rebase fails on unborn branch with staged changes' '
git ls-files >actual &&
test_cmp expect actual &&
test_must_fail git pull --rebase .. master 2>err &&
- echo staged-file >expect &&
git ls-files >actual &&
test_cmp expect actual &&
- echo staged-file >expect &&
git show :staged-file >actual &&
test_cmp expect actual &&
test_i18ngrep "unborn branch with changes added to the index" err