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

Side by Side Diff: git_cl/test/owners.sh

Issue 6679033: fix git-cl test scripts (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 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
« no previous file with comments | « git_cl/test/hooks.sh ('k') | git_cl/test/push-basic.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_initsvn 7 setup_initsvn
8 setup_gitsvn 8 setup_gitsvn
9 9
10 ( 10 (
(...skipping 14 matching lines...) Expand all
25 25
26 git add OWNERS PRESUBMIT.py ; git commit -q -m "add OWNERS" 26 git add OWNERS PRESUBMIT.py ; git commit -q -m "add OWNERS"
27 27
28 test_expect_success "upload succeeds (needs a server running on localhost)" \ 28 test_expect_success "upload succeeds (needs a server running on localhost)" \
29 "$GIT_CL upload -m test master | grep -q 'Issue created'" 29 "$GIT_CL upload -m test master | grep -q 'Issue created'"
30 30
31 test_expect_success "git-cl status has a suggested reviewer" \ 31 test_expect_success "git-cl status has a suggested reviewer" \
32 "$GIT_CL status | grep -q 'R=ben@chromium.org'" 32 "$GIT_CL status | grep -q 'R=ben@chromium.org'"
33 33
34 test_expect_failure "git-cl dcommit fails w/ missing LGTM" \ 34 test_expect_failure "git-cl dcommit fails w/ missing LGTM" \
35 "$GIT_CL dcommit" 35 "$GIT_CL dcommit -f"
36 36
37 test_expect_success "git-cl dcommit --tbr succeeds" \ 37 test_expect_success "git-cl dcommit --tbr succeeds" \
38 "$GIT_CL dcommit --tbr -f | grep -q -- '--tbr was specified'" 38 "$GIT_CL dcommit --tbr -f | grep -q -- '--tbr was specified'"
39 ) 39 )
40 SUCCESS=$? 40 SUCCESS=$?
41 41
42 cleanup 42 cleanup
43 43
44 if [ $SUCCESS == 0 ]; then 44 if [ $SUCCESS == 0 ]; then
45 echo PASS 45 echo PASS
46 fi 46 fi
OLDNEW
« no previous file with comments | « git_cl/test/hooks.sh ('k') | git_cl/test/push-basic.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698