old_contents: '''
  __author__ = "Stefan Stanacar"
  __copyright__ = "Copyright 2014 Intel Corporation"
  __credits__ = ["Stefan Stanacar"]
  __license__ = "GPL"
  __version__ = "2.0"
  __maintainer__ = "Stefan Stanacar"
  __email__ = "stefanx.stanacar@intel.com"
  '''
  
  
  from buildbot.steps.shell import ShellCommand
  
  class RunOeSelftest(ShellCommand):
      haltOnFailure = False
      flunkOnFailure = True
      name = "Running oe-selftest"
      def __init__(self, factory, argdict=None, **kwargs):
          self.factory = factory
          for k, v in argdict.iteritems():
                  setattr(self, k, v)
          self.description = "Running oe-selftest"
          self.timeout = 100000
          kwargs['timeout']=self.timeout
          self.command = "if [ -d meta-selftest ]; then . ./oe-init-build-env; oe-selftest; else echo 'Skipping step - no meta-selftest layer here'; fi"
          ShellCommand.__init__(self, **kwargs)
  
new_contents: '''
  __author__ = "Stefan Stanacar"
  __copyright__ = "Copyright 2014 Intel Corporation"
  __credits__ = ["Stefan Stanacar"]
  __license__ = "GPL"
  __version__ = "2.0"
  __maintainer__ = "Stefan Stanacar"
  __email__ = "stefanx.stanacar@intel.com"
  '''
  
  
  from buildbot.steps.shell import ShellCommand
  
  class RunOeSelftest(ShellCommand):
      haltOnFailure = False
      flunkOnFailure = True
      name = "Running oe-selftest"
      def __init__(self, factory, argdict=None, **kwargs):
          self.factory = factory
          for k, v in argdict.iteritems():
                  setattr(self, k, v)
          self.description = "Running oe-selftest"
          self.timeout = 100000
          kwargs['timeout']=self.timeout
          self.command = "if [ -d meta-selftest ]; then . ./oe-init-build-env; oe-selftest --run-all-tests; else echo 'Skipping step - no meta-selftest layer here'; fi"
          ShellCommand.__init__(self, **kwargs)
  
subject: change the way oe-selftest is called