Ido Barkan has uploaded a new change for review. Change subject: net: tests: also add line number in test that called setupNetworks ......................................................................
net: tests: also add line number in test that called setupNetworks This is useful when there is a need to analyze logs from tests with multiple setupNetworks calls. Change-Id: Ic57cb880f0f05f2c76520494a0ad9582438794d4 Signed-off-by: Ido Barkan <[email protected]> --- M tests/functional/utils.py 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/96/42196/1 diff --git a/tests/functional/utils.py b/tests/functional/utils.py index fd232a2..da2a007 100644 --- a/tests/functional/utils.py +++ b/tests/functional/utils.py @@ -160,7 +160,9 @@ @netinfo_altering def setupNetworks(self, networks, bonds, options): stack = inspect.stack() - options['_caller'] = stack[2][3] # add calling method for logs + # add calling method for logs + test_method, code_line = stack[2][3], stack[2][2] + options['_caller'] = '{}:{}'.format(test_method, code_line) result = self.vdscli.setupNetworks(networks, bonds, options) return _parse_result(result) -- To view, visit https://gerrit.ovirt.org/42196 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic57cb880f0f05f2c76520494a0ad9582438794d4 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Ido Barkan <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
