Bug 903606 - Use mozfile.TemporaryDirectory in cppunittest scripts;r=ted
This commit is contained in:
@@ -132,7 +132,7 @@ class RemoteCPPUnitTests(cppunittests.CPPUnitTests):
|
||||
returncode = self.device.shell([remote_bin], buf, env=env, cwd=self.remote_home_dir,
|
||||
timeout=cppunittests.CPPUnitTests.TEST_PROC_TIMEOUT)
|
||||
print >> sys.stdout, buf.getvalue()
|
||||
with cppunittests.TemporaryDirectory() as tempdir:
|
||||
with mozfile.TemporaryDirectory() as tempdir:
|
||||
self.device.getDirectory(self.remote_home_dir, tempdir)
|
||||
if mozcrash.check_for_crashes(tempdir, symbols_path,
|
||||
test_name=basename):
|
||||
|
||||
Reference in New Issue
Block a user