def process_output(self):
if self.task_process.state() == QProcess.Running:
output = self.task_process.readAllStandardOutput().data().decode()
self.task_msg.emit(f"{str(output)}")
if 'fail' in output:
self.task_fail_result.emit()
elif 'pass' in output:
self.task_pass_result.emit()