Dump checksums to log file to aid debugging.
BUG=None.
TEST=Local test on squawks.
Change-Id: If1700b6f1bd9c2ea2f8338771363d0c953d2037e
Reviewed-on: https://chromium-review.googlesource.com/284700
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
Commit-Queue: Mussa Kiroga <mussa@chromium.org>
Tested-by: Mussa Kiroga <mussa@chromium.org>
diff --git a/client/site_tests/video_GlitchDetection/video_GlitchDetection.py b/client/site_tests/video_GlitchDetection/video_GlitchDetection.py
index a525319..b90daa0 100755
--- a/client/site_tests/video_GlitchDetection/video_GlitchDetection.py
+++ b/client/site_tests/video_GlitchDetection/video_GlitchDetection.py
@@ -203,11 +203,28 @@
of frames is distributed as expected.
"""
+
+ def dump_list(l):
+ """
+ Logs list line by line.
+
+ @param l, the list to log.
+
+ """
+ for elem in l:
+ logging.debug(elem)
+
checksums = self.capture_frames()
+ logging.debug("*** RAW checksums ***")
+ dump_list(checksums)
+
checksum_ind_list = self.get_unique_checksum_indices(checksums)
logging.debug("Download golden checksum file.")
+ logging.debug("*** FILTERED checksum ***")
+ dump_list(checksum_ind_list)
+
remote_golden_checksum_path = os.path.join(
self.remote_golden_images_dir, self.factory.golden_checksum_filename)