autotest: Allow setting packet capture snaplen via command line
While here, change the "clean up this object's state method" to be
called |close()| like other objects for which we perform similar
operations. Change this close() method to delete package capture on the
DUT since we've already copied them into our local results and the
captures can take up a lot of space in /tmp.
Also let stop_capture() return a list remote files from captures
stopped. This lets tests perform operations on those captures like
inspect contents.
BUG=chromium:308780
TEST=A test that consumes these changes passes. snaplen flag has worked
when used from the command line.
Change-Id: Ib8e7bfbd3b62054ae3777e631407bcacca379350
Reviewed-on: https://chromium-review.googlesource.com/173636
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
4 files changed