def METHOD_NAME(self):
    cmd = yield self.makeRemoteShellCommand()
    yield self.runCommand(cmd)
    stdio_log = yield self.getLog('stdio')
    yield stdio_log.finish()
    problems = ""
    for test, err in self._observer.errors + self._observer.failures:
        problems += f"{test.id()}\n{err}"
    if problems:
        yield self.addCompleteLog("problems", problems)
    warnings = self._observer.warningio.getvalue()
    if warnings:
        yield self.addCompleteLog("warnings", warnings)
    failures = len(self._observer.failures)
    errors = len(self._observer.errors)
    total = self._observer.testsRun
    if cmd.didFail():
        return FAILURE
    if failures + errors > 0:
        return FAILURE
    if not total and self.failureOnNoTests:
        return FAILURE
    return SUCCESS