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

Side by Side Diff: git_cl/test/patch.sh

Issue 6714008: fix failed rename of args (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: add tests Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « git_cl/git_cl.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 set -e
4
5 . ./test-lib.sh
6
7 setup_initsvn
8 setup_gitsvn
9
10 (
11 set -e
12 cd git-svn
13 git checkout -q -b work
14 echo "some work done on a branch" >> test
15 git add test; git commit -q -m "branch work"
16
17 git config rietveld.server localhost:8080
18
19 # Prevent the editor from coming up when you upload.
20 export EDITOR=$(which true)
21
22 test_expect_success "upload succeeds (needs a server running on localhost)" \
23 "$GIT_CL upload -m test master | grep -q 'Issue created'"
24
25 test_expect_success "git-cl status now knows the issue" \
26 "$GIT_CL status | grep -q 'Issue number'"
27
28 ISSUE=$($GIT_CL status | awk '$0 ~ "Issue number:" { print $3 }')
29
30 git checkout -q -b test2 master
31
32 test_expect_success "git cl patch $ISSUE"
33 )
34 SUCCESS=$?
35
36 cleanup
37
38 if [ $SUCCESS == 0 ]; then
39 echo PASS
40 fi
OLDNEW
« no previous file with comments | « git_cl/git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698