aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
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 /tools/shared.py
parent39a1770100fd87f474d67d6fa689809ced73bb65 (diff)
fix for bug with using old full pathnames when loading builds from cache in test runner
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index ba953e19..9882cd7f 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -454,7 +454,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' \
if cache is not None:
cache[cache_name] = {}
for f in generated_libs:
- cache[cache_name][f] = open(f, 'rb').read()
+ basename = os.path.basename(f)
+ cache[cache_name][basename] = open(f, 'rb').read()
if old_dir:
os.chdir(old_dir)
return generated_libs