diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-05-10 12:21:53 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-06-23 15:17:44 +0200 |
commit | 8d22bcea29cd54d9c8bbe8ea298a033a303eedeb (patch) | |
tree | 43a63896d1be03c617b13aea475b467b99d7f58c | |
parent | 9e240bd2c496353ffafdaa7fadd4301abd424c4c (diff) | |
download | libgit2-8d22bcea29cd54d9c8bbe8ea298a033a303eedeb.tar.gz |
generate.py: generate clar cache in binary directory
The source directory should usually not be touched when using
out-of-tree builds. But next to the previously fixed "clar.suite" file, we
are also writing the ".clarcache" into the project's source tree,
breaking the builds. Fix this by also honoring the output directory for
the ".clarcache" file.
-rw-r--r-- | tests/generate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/generate.py b/tests/generate.py index b1562fa0c..6a6228f25 100644 --- a/tests/generate.py +++ b/tests/generate.py @@ -158,7 +158,7 @@ class TestSuite(object): return modules def load_cache(self): - path = os.path.join(self.path, '.clarcache') + path = os.path.join(self.output, '.clarcache') cache = {} try: @@ -171,7 +171,7 @@ class TestSuite(object): return cache def save_cache(self): - path = os.path.join(self.path, '.clarcache') + path = os.path.join(self.output, '.clarcache') with open(path, 'wb') as cache: pickle.dump(self.modules, cache) |