OLD | NEW |
(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 |
OLD | NEW |