Exemplo n.º 1
0
 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)
     msg = "Subtest %s configuration:\n" % self.__class__.__name__
     for key, value in self.config.items():
         msg += '\t\t%s = "%s"\n' % (key, value)
     self.logdebug(msg)
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 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))
Exemplo n.º 4
0
 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")
Exemplo n.º 5
0
 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")