X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiExecutor.py;h=adafa88fa09dd2346ba65e86b1ef494f9fec8080;hb=6c6b9edc4690f5c4cd86334d706d7c40a81c85cf;hp=792fa4c3b362dcd0b975162d89fef6898acdc3bc;hpb=29726f92698452f51033fc3ab52f112b74eae594;p=csit.git diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py index 792fa4c3b3..adafa88fa0 100644 --- a/resources/libraries/python/PapiExecutor.py +++ b/resources/libraries/python/PapiExecutor.py @@ -148,8 +148,7 @@ class PapiSocketExecutor(object): self._ssh_control_socket = None self._local_vpp_socket = None - @property - def crc_checker(self): + def create_crc_checker(self): """Return the cached instance or create new one from directory. It is assumed self.api_json_directory is set, as a class variable. @@ -204,7 +203,7 @@ class PapiSocketExecutor(object): cls.api_json_directory = tmp_dir + "/usr/share/vpp/api" # Perform initial checks before .api.json files are gone, # by accessing the property (which also creates its instance). - self.crc_checker + self.create_crc_checker() # When present locally, we finally can find the installation path. package_path = glob.glob(tmp_dir + installed_papi_glob)[0] # Package path has to be one level above the vpp_papi directory. @@ -355,11 +354,9 @@ class PapiSocketExecutor(object): :rtype: PapiSocketExecutor :raises RuntimeError: If unverified or conflicting CRC is encountered. """ - self.crc_checker.report_initial_conflicts() if history: PapiHistory.add_to_papi_history( self._node, csit_papi_command, **kwargs) - self.crc_checker.check_api_name(csit_papi_command) self._api_command_list.append( dict(api_name=csit_papi_command, api_args=kwargs)) return self @@ -519,7 +516,6 @@ class PapiSocketExecutor(object): if not isinstance(reply, list): reply = [reply] for item in reply: - self.crc_checker.check_api_name(item.__class__.__name__) dict_item = dictize(item) if "retval" in dict_item.keys(): # *_details messages do not contain retval.