You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rl...@apache.org on 2016/06/21 02:10:40 UTC
incubator-hawq git commit: HAWQ-841. Running "make -j8
unittest-check" under src/backend will throw "File exists" error
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 <pa...@gmail.com>
Authored: Mon Jun 20 18:00:08 2016 +0800
Committer: rlei <rl...@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):