Show More
@@ -348,12 +348,8 class coverage: | |||||
348 | args = self.cexecuted.keys() |
|
348 | args = self.cexecuted.keys() | |
349 | ignore_errors = settings.get('ignore-errors') |
|
349 | ignore_errors = settings.get('ignore-errors') | |
350 | show_missing = settings.get('show-missing') |
|
350 | show_missing = settings.get('show-missing') | |
351 |
directory = settings.get('directory |
|
351 | directory = settings.get('directory') | |
352 |
omit = settings.get('omit |
|
352 | omit = filter(None, settings.get('omit', '').split(',')) | |
353 | if omit is not None: |
|
|||
354 | omit = omit.split(',') |
|
|||
355 | else: |
|
|||
356 | omit = [] |
|
|||
357 |
|
353 | |||
358 | if settings.get('report'): |
|
354 | if settings.get('report'): | |
359 | self.report(args, show_missing, ignore_errors, omit_prefixes=omit) |
|
355 | self.report(args, show_missing, ignore_errors, omit_prefixes=omit) | |
@@ -365,7 +361,8 class coverage: | |||||
365 |
|
361 | |||
366 | def get_ready(self): |
|
362 | def get_ready(self): | |
367 | if self.usecache and not self.cache: |
|
363 | if self.usecache and not self.cache: | |
368 |
self.cache = os.environ.get(self.cache_env, |
|
364 | self.cache = os.path.abspath(os.environ.get(self.cache_env, | |
|
365 | self.cache_default)) | |||
369 | self.restore() |
|
366 | self.restore() | |
370 | self.analysis_cache = {} |
|
367 | self.analysis_cache = {} | |
371 |
|
368 | |||
@@ -408,6 +405,8 class coverage: | |||||
408 | # save(). Save coverage data to the coverage cache. |
|
405 | # save(). Save coverage data to the coverage cache. | |
409 |
|
406 | |||
410 | def save(self): |
|
407 | def save(self): | |
|
408 | # move to directory that must exist. | |||
|
409 | os.chdir(os.sep) | |||
411 | if self.usecache and self.cache: |
|
410 | if self.usecache and self.cache: | |
412 | self.canonicalize_filenames() |
|
411 | self.canonicalize_filenames() | |
413 | cache = open(self.cache, 'wb') |
|
412 | cache = open(self.cache, 'wb') |
General Comments 0
You need to be logged in to leave comments.
Login now