From 677ae40a2be6db9f49b19ada3c4299a8904f7784 Mon Sep 17 00:00:00 2001 From: selias Date: Thu, 15 Dec 2016 13:51:57 +0100 Subject: HC Test: fix archiving artifacts in csit-hc2vpp jobs Change-Id: I392eac7404d5e1793a7de9d7a44b9defb89e7b9d Signed-off-by: selias --- resources/libraries/python/honeycomb/HoneycombUtil.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'resources/libraries/python/honeycomb') diff --git a/resources/libraries/python/honeycomb/HoneycombUtil.py b/resources/libraries/python/honeycomb/HoneycombUtil.py index 22a7e7ef1e..f607c2439a 100644 --- a/resources/libraries/python/honeycomb/HoneycombUtil.py +++ b/resources/libraries/python/honeycomb/HoneycombUtil.py @@ -437,3 +437,18 @@ class HoneycombUtil(object): (_, stdout, _) = ssh.exec_command(cmd, timeout=30) return stdout + + @staticmethod + def archive_honeycomb_log(node): + """Copy honeycomb log file from DUT node to VIRL for archiving. + + :param node: Honeycomb node. + :type node: dict + """ + + ssh = SSH() + ssh.connect(node) + + cmd = "cp /var/log/honeycomb/honeycomb.log /scratch/" + + ssh.exec_command_sudo(cmd) -- cgit 1.2.3-korg