video_VideoEncodeAccelerator: Remove output file when test is complete.
Output file can weigth several GB and lead to failure of subsequent
tests.
BUG=chromium:619156
TEST=None
Change-Id: I12e030d8ce2ab561d9727f0fe7c8d4bfabb6a64b
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/351801
Reviewed-by: Owen Lin <owenlin@chromium.org>
diff --git a/client/site_tests/video_VideoEncodeAccelerator/video_VideoEncodeAccelerator.py b/client/site_tests/video_VideoEncodeAccelerator/video_VideoEncodeAccelerator.py
index 143a381..c3965e9 100644
--- a/client/site_tests/video_VideoEncodeAccelerator/video_VideoEncodeAccelerator.py
+++ b/client/site_tests/video_VideoEncodeAccelerator/video_VideoEncodeAccelerator.py
@@ -12,8 +12,6 @@
from autotest_lib.client.common_lib import file_utils
from autotest_lib.client.cros import chrome_binary_test
-from contextlib import closing
-
DOWNLOAD_BASE = 'http://commondatastorage.googleapis.com/chromiumos-test-assets-public/'
BINARY = 'video_encode_accelerator_unittest'
@@ -50,6 +48,7 @@
def run_once(self, in_cloud, streams, profile):
"""Runs video_encode_accelerator_unittest on the streams.
+ @param in_cloud: Input file needs to be downloaded first.
@param streams: The test streams for video_encode_accelerator_unittest.
@param profile: The profile to encode into.
@@ -82,6 +81,7 @@
# Remove the downloaded video
if in_cloud:
_remove_if_exists(input_path)
+ _remove_if_exists(output_path)
if last_test_failure:
raise last_test_failure