def run(self, cmd, *_, **__): self.command_to_run = cmd if cmd == "mktemp": return Result(stdout="temporary\n") elif 'stat -c "%U:%G"' in cmd: return Result(stdout="bentsi:bentsi") elif 'stat -c "%a"' in cmd: return Result(stdout="644") return Result(stdout="", stderr="")
def run(self, cmd, *args, **kwargs): if cmd == "mktemp": return Result(stdout="temporary\n") self.command_to_run = cmd