Bug 903606 - Use mozfile.TemporaryDirectory in cppunittest scripts;r=ted

This commit is contained in:
Dan Minor
2013-08-19 10:02:42 -04:00
parent 9b4e8e2e89
commit f8c3947cc1
2 changed files with 3 additions and 9 deletions

View File

@@ -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):