You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/05/14 21:40:22 UTC

git commit: more info on forgegit dir failures

Updated Branches:
  refs/heads/db/forgegit-repofailure-info [created] 127002a12


more info on forgegit dir failures


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/127002a1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/127002a1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/127002a1

Branch: refs/heads/db/forgegit-repofailure-info
Commit: 127002a12cf15fd3eb799e576f1b548d496f4b2c
Parents: 5859115
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Tue May 14 19:40:13 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Tue May 14 19:40:13 2013 +0000

----------------------------------------------------------------------
 ForgeGit/forgegit/tests/model/test_repository.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/127002a1/ForgeGit/forgegit/tests/model/test_repository.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/tests/model/test_repository.py b/ForgeGit/forgegit/tests/model/test_repository.py
index 1614069..5f661da 100644
--- a/ForgeGit/forgegit/tests/model/test_repository.py
+++ b/ForgeGit/forgegit/tests/model/test_repository.py
@@ -163,7 +163,7 @@ class TestGitRepo(unittest.TestCase, RepoImplTestBase):
         assert not os.path.exists('/tmp/testgit.git/hooks/update')
         assert not os.path.exists('/tmp/testgit.git/hooks/post-receive-user')
         assert os.path.exists('/tmp/testgit.git/hooks/post-receive')
-        assert os.access('/tmp/testgit.git/hooks/post-receive', os.X_OK)
+        assert os.access('/tmp/testgit.git/hooks/post-receive', os.X_OK), os.stat('/tmp/testgit.git/hooks/post-receive')
 
     @mock.patch('forgegit.model.git_repo.g.post_event')
     def test_clone(self, post_event):
@@ -184,7 +184,7 @@ class TestGitRepo(unittest.TestCase, RepoImplTestBase):
         assert not os.path.exists('/tmp/testgit.git/hooks/update')
         assert not os.path.exists('/tmp/testgit.git/hooks/post-receive-user')
         assert os.path.exists('/tmp/testgit.git/hooks/post-receive')
-        assert os.access('/tmp/testgit.git/hooks/post-receive', os.X_OK)
+        assert os.access('/tmp/testgit.git/hooks/post-receive', os.X_OK), os.stat('/tmp/testgit.git/hooks/post-receive')
         with open('/tmp/testgit.git/hooks/post-receive') as f: c = f.read()
         self.assertIn('curl -s http://localhost//auth/refresh_repo/p/test/src-git/\n', c)
         self.assertIn('exec $DIR/post-receive-user\n', c)
@@ -213,7 +213,7 @@ class TestGitRepo(unittest.TestCase, RepoImplTestBase):
             assert os.path.exists('/tmp/testgit.git/hooks/update')
             assert os.path.exists('/tmp/testgit.git/hooks/post-receive-user')
             assert os.path.exists('/tmp/testgit.git/hooks/post-receive')
-            assert os.access('/tmp/testgit.git/hooks/post-receive', os.X_OK)
+            assert os.access('/tmp/testgit.git/hooks/post-receive', os.X_OK), os.stat('/tmp/testgit.git/hooks/post-receive')
             with open('/tmp/testgit.git/hooks/post-receive') as f: c = f.read()
             self.assertIn('curl -s http://localhost//auth/refresh_repo/p/test/src-git/\n', c)
             self.assertIn('exec $DIR/post-receive-user\n', c)