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

Side by Side Diff: tests/upload-local-tracking-branch.sh

Issue 197073007: Make rietveld test work on port 10000. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Also fix tests. Created 6 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
« no previous file with comments | « tests/test-lib.sh ('k') | tests/upload-stale.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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 set -e 7 set -e
8 8
9 . ./test-lib.sh 9 . ./test-lib.sh
10 10
11 setup_initgit 11 setup_initgit
12 setup_gitgit 12 setup_gitgit
13 13
14 ( 14 (
15 set -e 15 set -e
16 cd git-git 16 cd git-git
17 git checkout -q -b work HEAD^ 17 git checkout -q -b work HEAD^
18 git checkout -q -t -b work2 work 18 git checkout -q -t -b work2 work
19 echo "some work done on a branch that tracks a local branch" >> test 19 echo "some work done on a branch that tracks a local branch" >> test
20 git add test; git commit -q -m "local tracking branch work" 20 git add test; git commit -q -m "local tracking branch work"
21 21
22 git config rietveld.server localhost:8080 22 git config rietveld.server localhost:10000
23 23
24 # Prevent the editor from coming up when you upload. 24 # Prevent the editor from coming up when you upload.
25 export GIT_EDITOR=$(which true) 25 export GIT_EDITOR=$(which true)
26 test_expect_success "upload succeeds (needs a server running on localhost)" \ 26 test_expect_success "upload succeeds (needs a server running on localhost)" \
27 "$GIT_CL upload -m test | grep -q 'Issue created'" 27 "$GIT_CL upload -m test | grep -q 'Issue created'"
28 ) 28 )
29 SUCCESS=$? 29 SUCCESS=$?
30 30
31 cleanup 31 cleanup
32 32
33 if [ $SUCCESS == 0 ]; then 33 if [ $SUCCESS == 0 ]; then
34 echo PASS 34 echo PASS
35 fi 35 fi
OLDNEW
« no previous file with comments | « tests/test-lib.sh ('k') | tests/upload-stale.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698