Antoni Segura Puimedon has uploaded a new change for review.

Change subject: net_func_tests: add calling method name to setupNetworks
......................................................................

net_func_tests: add calling method name to setupNetworks

It is usually difficult to know which test originated the
setupNetworks calls in the logs. This patch makes it easier to debug

Change-Id: Id5f07be1f2cef54a773deb8dd73967dc55bf2cf0
Signed-off-by: Antoni S. Puimedon <[email protected]>
---
M tests/functional/utils.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/11/35711/1

diff --git a/tests/functional/utils.py b/tests/functional/utils.py
index 40c59ba..87a43dd 100644
--- a/tests/functional/utils.py
+++ b/tests/functional/utils.py
@@ -18,6 +18,7 @@
 #
 from contextlib import contextmanager
 from functools import wraps
+import inspect
 import socket
 import time
 import threading
@@ -152,6 +153,8 @@
 
     @netinfo_altering
     def setupNetworks(self, networks, bonds, options):
+        options = dir(options)
+        options['_caller'] = inspect()[2][3]  # add calling method for logs
         result = self.vdscli.setupNetworks(networks, bonds, options)
         return result['status']['code'], result['status']['message']
 


-- 
To view, visit http://gerrit.ovirt.org/35711
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id5f07be1f2cef54a773deb8dd73967dc55bf2cf0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to