Piotr Kliczewski has uploaded a new change for review. Change subject: jsonrpcvdscli: improve functional network tests duration time ......................................................................
jsonrpcvdscli: improve functional network tests duration time The tests were creating new jsonrpcvdscli#_Server every time before test invocation. In __init__ method we perform schema parsing which is time consuming operation. We improved duration time of the test by creating the objects only once instead of before every test method. Change-Id: Id1fd202566edd389f06d49876e5b83391686b53b Signed-off-by: pkliczewski <piotr.kliczew...@gmail.com> --- M tests/functional/networkTests.py 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/56/48356/1 diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py index 3f4053e..a00e042 100644 --- a/tests/functional/networkTests.py +++ b/tests/functional/networkTests.py @@ -204,8 +204,10 @@ @expandPermutations class NetworkTest(TestCaseBase): - def setUp(self): - self.vdsm_net = VdsProxy() + @classmethod + def setUpClass(cls): + cls._patch_arch.apply() + cls.vdsm_net = VdsProxy() def cleanupNet(func): """ -- To view, visit https://gerrit.ovirt.org/48356 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id1fd202566edd389f06d49876e5b83391686b53b Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Piotr Kliczewski <piotr.kliczew...@gmail.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches