| OLD | NEW |
| 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 git checkout -q -t -b work2 work | 14 git checkout -q -t -b work2 work |
| 15 echo "some work done on a branch that tracks a local branch" >> test | 15 echo "some work done on a branch that tracks a local branch" >> test |
| 16 git add test; git commit -q -m "local tracking branch work" | 16 git add test; git commit -q -m "local tracking branch work" |
| 17 | 17 |
| 18 git config rietveld.server localhost:8080 | 18 git config rietveld.server localhost:8080 |
| 19 | 19 |
| 20 # Prevent the editor from coming up when you upload. | 20 # Prevent the editor from coming up when you upload. |
| 21 export EDITOR=/bin/true | 21 export EDITOR=$(which true) |
| 22 test_expect_success "upload succeeds (needs a server running on localhost)" \ | 22 test_expect_success "upload succeeds (needs a server running on localhost)" \ |
| 23 "$GIT_CL upload -m test | grep -q 'Issue created'" | 23 "$GIT_CL upload -m test | grep -q 'Issue created'" |
| 24 ) | 24 ) |
| 25 SUCCESS=$? | 25 SUCCESS=$? |
| 26 | 26 |
| 27 cleanup | 27 cleanup |
| 28 | 28 |
| 29 if [ $SUCCESS == 0 ]; then | 29 if [ $SUCCESS == 0 ]; then |
| 30 echo PASS | 30 echo PASS |
| 31 fi | 31 fi |
| OLD | NEW |