Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: tests/submit-from-new-dir.sh

Issue 2394033003: Remove SVN (and dcommit) support from git-cl (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/save-description-on-failure.sh ('k') | tests/submodule-merge-test.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Check that we're able to submit from a directory that doesn't exist on the 7 # Check that we're able to submit from a directory that doesn't exist on the
8 # trunk. This tests for a previous bug where we ended up with an invalid CWD 8 # trunk. This tests for a previous bug where we ended up with an invalid CWD
9 # after switching to the merge branch. 9 # after switching to the merge branch.
10 10
11 set -e 11 set -e
12 12
13 . ./test-lib.sh 13 . ./test-lib.sh
14 14
15 setup_initsvn 15 setup_git_remote
16 setup_gitsvn 16 setup_git_checkout
17 17
18 ( 18 (
19 set -e 19 set -e
20 cd git-svn 20 cd git_checkout
21 git config rietveld.server localhost:10000 21 git config rietveld.server localhost:10000
22 22
23 # Create a branch and give it an issue. 23 # Create a branch and give it an issue.
24 git checkout -q -b new 24 git checkout -q -b new
25 mkdir dir 25 mkdir dir
26 cd dir 26 cd dir
27 echo "some work done on a branch" >> test 27 echo "some work done on a branch" >> test
28 git add test; git commit -q -m "branch work" 28 git add test; git commit -q -m "branch work"
29 export GIT_EDITOR=$(which true) 29 export GIT_EDITOR=$(which true)
30 test_expect_success "upload succeeds" \ 30 test_expect_success "upload succeeds" \
31 "$GIT_CL upload --no-oauth2 -m test master | grep -q 'Issue created'" 31 "$GIT_CL upload --no-oauth2 -m test master | grep -q 'Issue created'"
32 test_expect_success "git-cl dcommits ok" \ 32 test_expect_success "git-cl lands ok" \
33 "$GIT_CL dcommit -f --no-oauth2" 33 "$GIT_CL land -f --no-oauth2"
34 ) 34 )
35 35
36 SUCCESS=$? 36 SUCCESS=$?
37 37
38 cleanup 38 cleanup
39 39
40 if [ $SUCCESS == 0 ]; then 40 if [ $SUCCESS == 0 ]; then
41 echo PASS 41 echo PASS
42 fi 42 fi
OLDNEW
« no previous file with comments | « tests/save-description-on-failure.sh ('k') | tests/submodule-merge-test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698