def initialize(self): super(Subtest, self).initialize() # Fail test if autotest is too old version.check_autotest_version(self.config, get_version()) # Fail test if configuration being used doesn't match dockertest API version.check_version(self.config) # Fail test if dockertest API does not match documentation version version.check_doc_version() # These two are unique to subtest & runtime state self.step_log_msgs['setup'] = ("setup() for subtest version %s" % self.version) self.step_log_msgs['postprocess_iteration'] = ( "postprocess_iteration() #%d of #%d" % (self.iteration, self.iterations)) mode = selinux_is_enforcing() if mode and self.config.get('verify_enforcing', True): self.failif( not selinux_is_enforcing(), "SELinux mode != Enforcing and" " verify_enforcing is set")
def initialize(self): super(Subtest, self).initialize() # Fail test if autotest is too old version.check_autotest_version(self.config, get_version()) # Fail test if configuration being used doesn't match dockertest API version.check_version(self.config) # Fail test if dockertest API does not match documentation version version.check_doc_version() # These two are unique to subtest & runtime state self.step_log_msgs['setup'] = ("setup() for subtest version %s" % self.version) self.step_log_msgs['postprocess_iteration'] = ( "postprocess_iteration() #%d of #%d" % (self.iteration, self.iterations)) if self.config.get('verify_enforcing', True): self.failif(not selinux_is_enforcing(), "SELinux mode != Enforcing and" " verify_enforcing is set")