History log of /external/autotest/client/cros/p2p_utils.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b1a5bdb56a234b4ed7c41aa9746a695f825be2e3 02-Feb-2015 Christopher Wiley <wiley@chromium.org> Refactor avahi_utils to be usable from server tests

This makes these utilities more broadly useful by allowing them
to be used from server tests, where we cannot call DBus methods
on the local host.

In order to do this, route DBus calls through dbus_send.py, a wrapper
around the dbus-send utility. This wrapper does some limited parsing
of dbus-send output in order to conver it to meaningful Python types.

While here, allow original errors from p2p setup to propagate upward.
This increases the meaningful content in test failures.

BUG=brillo:8
TEST=peerd_* tests pass, as to p2p related tests.

Change-Id: If98be716f2061b90d1fa9d4681d1e00152f4005a
Reviewed-on: https://chromium-review.googlesource.com/245545
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/cros/p2p_utils.py
a25ea0d017f8f4ad128d32724c5f32db0e9e4d92 27-Dec-2013 Alex Deymo <deymo@chromium.org> P2P tests dump traffic for debug purposes.

This patch adds a new tcpdump.py library to run a tcpdump process
on the background capturing packets to a file. When setting up a
P2P test environment, a new TAP interface is created to simulate
the peers on that network.

This patch records the traffic on that TAP interface and makes it
available on the results directory on the test. The filename used
is dump-<iface-name>.pcap, usually dump-faketap0.pcap.

BUG=chromium:328078
TEST=test_that --fast -b $BOARD $HOST p2p_ServeFiles

Change-Id: Icc9ab81d6e3db1be4eb0431f0e5f194ae170517b
Reviewed-on: https://chromium-review.googlesource.com/181163
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
/external/autotest/client/cros/p2p_utils.py
a7b7c2be58de32ceff897c349e5875af6b2c95bf 06-Nov-2013 Alex Deymo <deymo@chromium.org> p2p_ShareFiles: Refactor common p2p-server testing code.

This patch adds a new p2p_utils.py module with common functions used
to test a p2p-server instance in order to reuse them on a different
test.

BUG=chromium:311657
TEST=test_that p2p_ShareFiles still passes

Change-Id: I16ef8944744208ddd5852ad2bab53d6fb4deeff1
Reviewed-on: https://chromium-review.googlesource.com/175953
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
/external/autotest/client/cros/p2p_utils.py