Commit 3eccfe5a authored by nednguyen@google.com's avatar nednguyen@google.com

Clean up unittest_data/data/archive_blank_000.wpr after unittest finishes.

BUG=400611

Review URL: https://codereview.chromium.org/446153002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287990 0039d316-1c4b-4281-b951-d872f2087c98
parent d086791b
...@@ -554,12 +554,18 @@ class PageRunnerTests(unittest.TestCase): ...@@ -554,12 +554,18 @@ class PageRunnerTests(unittest.TestCase):
test = ArchiveTest() test = ArchiveTest()
results = results_options.CreateResults(EmptyMetadataForTest(), options) results = results_options.CreateResults(EmptyMetadataForTest(), options)
page_runner.Run(test, ps, expectations, options, results) try:
if expect_from_archive and not test.archive_path_exist: page_runner.Run(test, ps, expectations, options, results)
logging.warning('archive path did not exist, asserting that page ' if expect_from_archive and not test.archive_path_exist:
'is from archive is skipped.') logging.warning('archive path did not exist, asserting that page '
return 'is from archive is skipped.')
self.assertEquals(expect_from_archive, test.is_page_from_archive) return
self.assertEquals(expect_from_archive, test.is_page_from_archive)
finally:
for p in ps:
if os.path.isfile(p.archive_path):
os.remove(p.archive_path)
def testUseLiveSitesFlagSet(self): def testUseLiveSitesFlagSet(self):
options = options_for_unittests.GetCopy() options = options_for_unittests.GetCopy()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment