def METHOD_NAME(self):
    # no logs, no verbose
    self.write_config('BBINCLUDELOGS = ""')
    result = bitbake("logging-test -c shelltest -f", ignore_status = True)
    self.assertIn("ERROR: Logfile of failure stored in:", result.output)
    self.assertNotIn("This is shell stdout", result.output)
    self.assertNotIn("This is shell stderr", result.output)
    # logs, no verbose
    self.write_config('BBINCLUDELOGS = "yes"')
    result = bitbake("logging-test -c shelltest -f", ignore_status = True)
    self.assertIn("ERROR: Logfile of failure stored in:", result.output)
    self.assertCount(result.output, "This is shell stdout", 1)
    self.assertCount(result.output, "This is shell stderr", 1)
    # no logs, verbose
    self.write_config('BBINCLUDELOGS = ""')
    result = bitbake("logging-test -c shelltest -f -v", ignore_status = True)
    self.assertIn("ERROR: Logfile of failure stored in:", result.output)
    # two copies due to set +x        
    self.assertCount(result.output, "This is shell stdout", 2)
    self.assertCount(result.output, "This is shell stderr", 2)
    # logs, verbose
    self.write_config('BBINCLUDELOGS = "yes"')
    result = bitbake("logging-test -c shelltest -f -v", ignore_status = True)
    self.assertIn("ERROR: Logfile of failure stored in:", result.output)
    # two copies due to set +x
    self.assertCount(result.output, "This is shell stdout", 2)
    self.assertCount(result.output, "This is shell stderr", 2)