From: Louis Scalbert Date: Fri, 18 Feb 2022 12:34:50 +0000 (+0100) Subject: topotests: fix usage of screen X-Git-Tag: pim6-testing-20220430~308^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ce530b418fca0db1acd18af1aee482b3f667e2b3;p=mirror%2Ffrr.git 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 --- 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