]> git.proxmox.com Git - mirror_frr.git/commitdiff
tests: update to munet 0.13.3, restoring GNU screen functionality
authorChristian Hopps <chopps@labn.net>
Wed, 10 May 2023 09:44:16 +0000 (09:44 +0000)
committerChristian Hopps <chopps@labn.net>
Wed, 10 May 2023 09:47:57 +0000 (09:47 +0000)
Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/lib/micronet_compat.py
tests/topotests/munet/base.py

index c5c2adc545bdfa03c7058849099c24534f030571..d648a120ab7667d25fe60463d0dfe391b5000c1f 100644 (file)
@@ -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 = ""
index eb4b088442da9c3e756d337cb6ac0f7e1601043e..c6ae70e09b21fe5a46efc504e07208c3c491d6b4 100644 (file)
@@ -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: