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

Side by Side Diff: git_cl/test/upload-stale.sh

Issue 6646041: Make git-cl tests work on Mac SnowLeopard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: 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/test/upload-local-tracking-branch.sh ('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
1 #!/bin/bash 1 #!/bin/bash
2 2
3 set -e 3 set -e
4 4
5 . ./test-lib.sh 5 . ./test-lib.sh
6 6
7 setup_initgit 7 setup_initgit
8 setup_gitgit 8 setup_gitgit
9 9
10 ( 10 (
11 set -e 11 set -e
12 cd git-git 12 cd git-git
13 git checkout -q -b work HEAD^ 13 git checkout -q -b work HEAD^
14 echo "some work done on a branch" >> test 14 echo "some work done on a branch" >> test
15 git add test; git commit -q -m "branch work" 15 git add test; git commit -q -m "branch work"
16 16
17 git config rietveld.server localhost:8080 17 git config rietveld.server localhost:8080
18 18
19 # Prevent the editor from coming up when you upload. 19 # Prevent the editor from coming up when you upload.
20 export EDITOR=/bin/true 20 export EDITOR=$(which true)
21 test_expect_success "upload succeeds (needs a server running on localhost)" \ 21 test_expect_success "upload succeeds (needs a server running on localhost)" \
22 "$GIT_CL upload -m test | grep -q 'Issue created'" 22 "$GIT_CL upload -m test | grep -q 'Issue created'"
23 23
24 test_expect_failure "description shouldn't contain unrelated commits" \ 24 test_expect_failure "description shouldn't contain unrelated commits" \
25 "$GIT_CL status | grep -q 'second commit'" 25 "$GIT_CL status | grep -q 'second commit'"
26 ) 26 )
27 SUCCESS=$? 27 SUCCESS=$?
28 28
29 cleanup 29 cleanup
30 30
31 if [ $SUCCESS == 0 ]; then 31 if [ $SUCCESS == 0 ]; then
32 echo PASS 32 echo PASS
33 fi 33 fi
OLDNEW
« no previous file with comments | « git_cl/test/upload-local-tracking-branch.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698