linuxdeepin / youqu

YouQu, a simple and powerful autotest framework.
GNU General Public License v2.0
55 stars 17 forks source link

CmdCtl.sudo_run_cmd("xxx")方法没有返回值,期望增加返回值 #61

Open DarkLii opened 4 months ago

DarkLii commented 4 months ago
@classmethod
def sudo_run_cmd(cls, command, interrupt=True, timeout=25, out_debug_flag=True, command_log=True, password=None):
    if password is None:
        password = conf.PASSWORD
    cls.run_cmd(
        f"echo '{password}' | sudo -S {command}",
        interrupt=interrupt,
        timeout=timeout,
        out_debug_flag=out_debug_flag,
        command_log=command_log
    )
mikigo commented 4 months ago

没有return,是个Bug,下个版本修复😍