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

Unified Diff: tests/push-from-logs.sh

Issue 1095033002: Enable OAuth2 by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: fix smoke tests Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/push-basic.sh ('k') | tests/rename.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/push-from-logs.sh
diff --git a/tests/push-from-logs.sh b/tests/push-from-logs.sh
index 0fef2a7d2a3577eb1f49da711397108ef5a48eb7..f835c778b7a8b256e2db7d40f16d80ce25e68bfb 100755
--- a/tests/push-from-logs.sh
+++ b/tests/push-from-logs.sh
@@ -21,7 +21,7 @@ setup_gitgit
git add test; git commit -q -m "branch work"
test_expect_success "git-cl upload wants a server" \
- "$GIT_CL upload 2>&1 | grep -q 'You must configure'"
+ "$GIT_CL upload --no-oauth2 2>&1 | grep -q 'You must configure'"
git config rietveld.server localhost:10000
@@ -31,7 +31,7 @@ setup_gitgit
# Prevent the editor from coming up when you upload.
export EDITOR=$(which true)
test_expect_success "upload succeeds (needs a server running on localhost)" \
- "$GIT_CL upload -m test master | \
+ "$GIT_CL upload --no-oauth2 -m test master | \
grep -q 'Issue created'"
test_expect_success "git-cl status now knows the issue" \
@@ -41,13 +41,13 @@ setup_gitgit
# Should contain 'branch work' x 2.
test_expect_success "git-cl status has the right description for the log" \
"$GIT_CL_STATUS --field desc | [ $( egrep -q '^branch work$' -c ) -eq 2 ]
-
+
test_expect_success "git-cl status has the right subject from message" \
"$GIT_CL_STATUS --field desc | \
[ $( egrep -q '^test$' --byte-offset) | grep '^0:' ]
test_expect_success "git-cl push ok" \
- "$GIT_CL push -f"
+ "$GIT_CL push -f --no-oauth2"
git checkout -q master > /dev/null 2>&1
git pull -q > /dev/null 2>&1
« no previous file with comments | « tests/push-basic.sh ('k') | tests/rename.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698