From ce530b418fca0db1acd18af1aee482b3f667e2b3 Mon Sep 17 00:00:00 2001 From: Louis Scalbert Date: Fri, 18 Feb 2022 13:34:50 +0100 Subject: [PATCH] topotests: fix usage of screen Opening new tab in screen is not possible when using option --vtysh or --shell. Error 'No such file or directory'. Fix the issue. Fixes: 6a5433ef0b ("tests: NEW micronet replacement for mininet") Signed-off-by: Louis Scalbert --- tests/topotests/lib/micronet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/micronet.py b/tests/topotests/lib/micronet.py index 8567bd3b4b..05f1edc106 100644 --- a/tests/topotests/lib/micronet.py +++ b/tests/topotests/lib/micronet.py @@ -362,7 +362,7 @@ class Commander(object): # pylint: disable=R0205 "/run/screen/S-{}/{}".format(os.environ["USER"], os.environ["STY"]) ): cmd = ["sudo", "-u", os.environ["SUDO_USER"]] + cmd - cmd.append(nscmd) + cmd.extend(nscmd.split(" ")) elif "DISPLAY" in os.environ: # We need it broken up for xterm user_cmd = cmd -- 2.39.5