Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: tests/tbr.sh

Issue 7253015: Remove manual --tbr support and convert it into automatic TBR= detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: removed tests/tbr.sh Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« presubmit_canned_checks.py ('K') | « tests/presubmit_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« presubmit_canned_checks.py ('K') | « tests/presubmit_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698