OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 set -e |
| 4 |
| 5 . ./test-lib.sh |
| 6 |
| 7 setup_initgit |
| 8 setup_gitgit |
| 9 |
| 10 ( |
| 11 set -e |
| 12 cd git-git |
| 13 git checkout -q -b work HEAD^ |
| 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=/bin/true |
| 21 test_expect_success "upload succeeds (needs a server running on localhost)" \ |
| 22 "$GIT_CL upload -m test | grep -q 'Issue created'" |
| 23 |
| 24 test_expect_failure "description shouldn't contain unrelated commits" \ |
| 25 "$GIT_CL status | grep -q 'second commit'" |
| 26 ) |
| 27 SUCCESS=$? |
| 28 |
| 29 cleanup |
| 30 |
| 31 if [ $SUCCESS == 0 ]; then |
| 32 echo PASS |
| 33 fi |
OLD | NEW |