aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-09 14:05:15 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-02-09 14:05:15 -0800
commit65bbb50870a52f8fa0fa90d14050ad8f21c338d8 (patch)
tree55682bfe220b37ff0e0b44dc5640860605d06203 /tests
parent39a1770100fd87f474d67d6fa689809ced73bb65 (diff)
fix for bug with using old full pathnames when loading builds from cache in test runner
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 61d2a6aa..a76fbaca 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -261,9 +261,10 @@ process(sys.argv[1])
if cache and self.library_cache.get(cache_name):
print >> sys.stderr, '<load build from cache> ',
generated_libs = []
- for bc_file in self.library_cache[cache_name]:
+ for basename in self.library_cache[cache_name]:
+ bc_file = os.path.join(build_dir, basename)
f = open(bc_file, 'wb')
- f.write(self.library_cache[cache_name][bc_file])
+ f.write(self.library_cache[cache_name][basename])
f.close()
generated_libs.append(bc_file)
return generated_libs
@@ -4374,7 +4375,10 @@ def process(filename):
del os.environ['EMCC_LEAVE_INPUTS_RAW']
def get_build_dir(self):
- return os.path.join(self.get_dir(), 'building')
+ ret = os.path.join(self.get_dir(), 'building')
+ if not os.path.exists(ret):
+ os.makedirs(ret)
+ return ret
def get_freetype(self):
Settings.INIT_STACK = 1 # TODO: Investigate why this is necessary