mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 04:33:18 +00:00
Merge pull request #13495 from LabNConsulting/chopps/munet-0.13.3
tests: update to munet 0.13.3, restoring GNU screen functionality
This commit is contained in:
commit
45df6ff3fb
@ -273,7 +273,7 @@ ff02::2\tip6-allrouters
|
||||
|
||||
shellopt = self.cfgopt.get_option_list("--shell")
|
||||
if "all" in shellopt or "." in shellopt:
|
||||
self.run_in_window("bash")
|
||||
self.run_in_window("bash", title="munet")
|
||||
|
||||
# This is expected by newer munet CLI code
|
||||
self.config_dirname = ""
|
||||
|
@ -1241,9 +1241,13 @@ class Commander: # pylint: disable=R0904
|
||||
# XXX not appropriate for ssh
|
||||
cmd = ["sudo", "-Eu", os.environ["SUDO_USER"]] + cmd
|
||||
|
||||
if not isinstance(nscmd, str):
|
||||
nscmd = shlex.join(nscmd)
|
||||
cmd.append(nscmd)
|
||||
if title:
|
||||
cmd.append("-t")
|
||||
cmd.append(title)
|
||||
|
||||
if isinstance(nscmd, str):
|
||||
nscmd = shlex.split(nscmd)
|
||||
cmd.extend(nscmd)
|
||||
elif "DISPLAY" in os.environ:
|
||||
cmd = [get_exec_path_host("xterm")]
|
||||
if "SUDO_USER" in os.environ:
|
||||
|
Loading…
Reference in New Issue
Block a user