| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 | |
| 3 # Tests the "tbr" functionality, which lets you submit without uploading | |
| 4 # first. | |
| 5 | |
| 6 set -e | |
| 7 | |
| 8 . ./test-lib.sh | |
| 9 | |
| 10 setup_initsvn | |
| 11 setup_gitsvn | |
| 12 | |
| 13 ( | |
| 14 set -e | |
| 15 cd git-svn | |
| 16 | |
| 17 # We need a server set up, but we don't use it. | |
| 18 git config rietveld.server localhost:1 | |
| 19 | |
| 20 echo "some work done" >> test | |
| 21 git add test; git commit -q -m "work" | |
| 22 | |
| 23 test_expect_success "git-cl dcommit tbr without an issue" \ | |
| 24 "$GIT_CL dcommit -f --tbr -m 'foo-quux'" | |
| 25 | |
| 26 git svn -q rebase >/dev/null 2>&1 | |
| 27 test_expect_success "dcommitted code has proper description" \ | |
| 28 "git show | grep -q 'foo-quux'" | |
| 29 | |
| 30 test_expect_success "upstream svn has our commit" \ | |
| 31 "svn log $REPO_URL 2>/dev/null | grep -q 'foo-quux'" | |
| 32 ) | |
| 33 SUCCESS=$? | |
| 34 | |
| 35 cleanup | |
| 36 | |
| 37 if [ $SUCCESS == 0 ]; then | |
| 38 echo PASS | |
| 39 fi | |
| OLD | NEW |