code: def print_action(self, test_succeed, action):
          '''
          Print the detailed info of failed or always print tests.
          '''
          #self.info_print(">>> {0}",action.keys())
          if not test_succeed or action['info']['always_show_run_output']:
              output = action['output'].strip()
              if output != "":
                  p = self.fail_print if action['result'] == 'fail' else self.p_print
                  self.info_print("")
                  self.info_print("({0}) {1}",action['info']['name'],action['info']['path'])
                  p("")
                  p("{0}",action['command'].strip())
                  p("")
                  for line in output.splitlines():
                      p("{0}",line.encode('utf-8')f print_action(self, test_succeed, action):
          '''
          Print the detailed info of failed or always print tests.
          '''
          #self.info_print(">>> {0}",action.keys())
          if not test_succeed or action['info']['always_show_run_output']:
              output = action['output'].strip()
              if output != "":
                  p = self.fail_print if action['result'] == 'fail' else self.p_print
                  self.info_print("")
                  self.info_print("({0}) {1}",action['info']['name'],action['info']['path'])
                  p("")
                  p("{0}",action['command'].strip())
                  p("")
                  for line in output.splitlines():
                      p("{0}",line.encode('utf-8'))
docs: Print the detailed info of failed or always print tests.