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