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

Unified Diff: tests/push-basic.sh

Issue 1160273005: Fix push_basic.sh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/push-basic.sh
diff --git a/tests/push-basic.sh b/tests/push-basic.sh
index e98d58fc4fd176c1ab3ee4cf14fb9cdec0825182..980d7807478ba5db6bcd04236d8e16bb74b22d90 100755
--- a/tests/push-basic.sh
+++ b/tests/push-basic.sh
@@ -44,8 +44,9 @@ setup_gitgit
--data-urlencode xsrf_token="$(print_xsrf_token)" \
$URL/edit
+ API=$(echo $URL | sed -e 's/\([0-9]\+\)$/api\/\1/')
test_expect_success "Base URL contains branch name" \
- "curl -s $($GIT_CL_STATUS --field=url) | grep 'URL:[[:space:]]*[^<]' | grep -q '@master'"
+ "curl -s $API | python -mjson.tool | grep base_url | grep -q '@master'"
test_expect_success "git-cl land ok" \
"$GIT_CL land -f --no-oauth2"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698