hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-841. Running "make -j8 unittest-check" under src/backend will throw "File exists" error
Date Tue, 21 Jun 2016 02:10:40 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master dbdabfb73 -> 84dd4d4b2


HAWQ-841. Running "make -j8 unittest-check" under src/backend will throw "File exists" error


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/84dd4d4b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/84dd4d4b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/84dd4d4b

Branch: refs/heads/master
Commit: 84dd4d4b235c544bd8168873fa1b62606355f70f
Parents: dbdabfb
Author: Paul Guo <paulguo@gmail.com>
Authored: Mon Jun 20 18:00:08 2016 +0800
Committer: rlei <rlei@pivotal.io>
Committed: Tue Jun 21 10:10:05 2016 +0800

----------------------------------------------------------------------
 src/test/unit/mock/mocker.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/84dd4d4b/src/test/unit/mock/mocker.py
----------------------------------------------------------------------
diff --git a/src/test/unit/mock/mocker.py b/src/test/unit/mock/mocker.py
index 821415c..667f662 100755
--- a/src/test/unit/mock/mocker.py
+++ b/src/test/unit/mock/mocker.py
@@ -129,7 +129,10 @@ class MockFile(object):
         out_dir = os.path.join(out_dir, os.path.dirname(relpath))
         (stem, ext) = os.path.splitext(os.path.basename(relpath))
         if not os.path.exists(out_dir):
-            os.makedirs(out_dir)
+            try:
+                os.makedirs(out_dir)
+            except OSError:
+                pass
         return os.path.join(out_dir, '{stem}_mock.c'.format(stem=stem))
 
     def mock(self):


Mime
View raw message