commit 9845adee0fe19a25d031394413380aed744c6dc2 Author: Ondrej Lichtner olichtne@redhat.com Date: Tue Jul 22 09:13:30 2014 +0200
NetTestController: store pcap based on machine id
Gathered pcap files were previously stored in directories named after machine hostnames with logs. Since then we moved the log files to directories named after machine ids used in the recipe. This patch moves the pcap files to the same location.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Controller/NetTestController.py | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) --- diff --git a/lnst/Controller/NetTestController.py b/lnst/Controller/NetTestController.py index 58a17b4..890bba7 100644 --- a/lnst/Controller/NetTestController.py +++ b/lnst/Controller/NetTestController.py @@ -721,9 +721,7 @@ class NetTestController: logging_root = os.path.abspath(logging_root) logging.info("Retrieving capture files from slaves") for machine_id, machine in self._machines.iteritems(): - hostname = machine.get_hostname() - - slave_logging_dir = os.path.join(logging_root, hostname + "/") + slave_logging_dir = os.path.join(logging_root, machine_id + "/") try: os.mkdir(slave_logging_dir) except OSError as err:
lnst-developers@lists.fedorahosted.org