Commit a185145f authored by dpranke@chromium.org's avatar dpranke@chromium.org

Make git-cl tests work on Mac SnowLeopard

This required making the location on 'true' consistently
path-independent and working around a weird subversion
issue.

Review URL: http://codereview.chromium.org/6646041

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77883 0039d316-1c4b-4281-b951-d872f2087c98
parent d945f368
......@@ -18,7 +18,7 @@ setup_gitsvn
git checkout -q -b abandoned
echo "some work done on a branch" >> test
git add test; git commit -q -m "branch work"
export EDITOR=/bin/true
export EDITOR=$(which true)
test_expect_success "upload succeeds" \
"$GIT_CL upload -m test master... | grep -q 'Issue created'"
......
......@@ -18,7 +18,7 @@ setup_gitsvn
git checkout -q -b rename
git mv test test2
git commit -q -m "renamed"
export EDITOR=/bin/true
export EDITOR=$(which true)
test_expect_success "upload succeeds" \
"$GIT_CL upload -m test master... | grep -q 'Issue created'"
......
......@@ -28,7 +28,7 @@ setup_gitgit
git add test; git commit -q -m "$DESC"
# Try to upload the change to an unresolvable hostname; git-cl should fail.
export EDITOR=/bin/true
export EDITOR=$(which true)
git config rietveld.server bogus.example.com:80
test_expect_failure "uploading to bogus server" "$GIT_CL upload 2>/dev/null"
......
......@@ -22,7 +22,7 @@ setup_gitsvn
cd dir
echo "some work done on a branch" >> test
git add test; git commit -q -m "branch work"
export EDITOR=/bin/true
export EDITOR=$(which true)
test_expect_success "upload succeeds" \
"$GIT_CL upload -m test master... | grep -q 'Issue created'"
test_expect_success "git-cl dcommits ok" \
......
......@@ -15,6 +15,9 @@ setup_initsvn() {
rm -rf svnrepo
svnadmin create svnrepo
# Need this in order for Mac SnowLeopard to work
echo "enable-rep-sharing = false" >> svnrepo/db/fsfs.conf
rm -rf svn
svn co -q $REPO_URL svn
(
......
......@@ -18,7 +18,7 @@ setup_gitgit
git config rietveld.server localhost:8080
# Prevent the editor from coming up when you upload.
export EDITOR=/bin/true
export EDITOR=$(which true)
test_expect_success "upload succeeds (needs a server running on localhost)" \
"$GIT_CL upload -m test | grep -q 'Issue created'"
)
......
......@@ -17,7 +17,7 @@ setup_gitgit
git config rietveld.server localhost:8080
# Prevent the editor from coming up when you upload.
export EDITOR=/bin/true
export EDITOR=$(which true)
test_expect_success "upload succeeds (needs a server running on localhost)" \
"$GIT_CL upload -m test | grep -q 'Issue created'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment