aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenney Phillis <kphillisjr@gmail.com>2012-07-15 04:27:55 -0500
committerJosé Fonseca <jfonseca@vmware.com>2012-07-16 20:13:58 +0100
commitf1060f191986eab0f6cf39d54a43c4895750068e (patch)
tree79101626f4624d12d8acff2b916b0165418d1f54
parent03c992ddb51fe7d39777967c94376019f7c19929 (diff)
downloadpiglit-f1060f191986eab0f6cf39d54a43c4895750068e.tar.gz
Changed piglit-run.py to automatically correct previous test results on a platform where the os seperator is not '\'.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
-rwxr-xr-xpiglit-run.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/piglit-run.py b/piglit-run.py
index e24cf2af..07bab900 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -186,6 +186,8 @@ def main():
# from being run again.
if OptionResume:
for (key, value) in old_results.tests.items():
+ if os.path.sep != '/':
+ key = key.replace(os.path.sep, '/', -1)
json_writer.write_dict_item(key, value)
env.exclude_tests.add(key)