From e9fde96d9cdb6ca5e4477f7b00d894d0262fa040 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 12 Nov 2022 14:25:47 -0800 Subject: [PATCH] Fix the commandline test This was tripping over < > redirections. --- tests/pexpects/commandline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/pexpects/commandline.py b/tests/pexpects/commandline.py index eab95106c..9cfac3799 100644 --- a/tests/pexpects/commandline.py +++ b/tests/pexpects/commandline.py @@ -68,15 +68,15 @@ send("echo process1; echo process2") send(control("a")) send(control("b")) send(control("k")) -sendline("echo first process is <$tmp>") -expect_str("first process is ") +sendline("echo first process is [$tmp]") +expect_str("first process is [echo process1]") send("echo process # comment") send(control("a")) send(control("b")) send(control("k")) -sendline('echo "process extent is <$tmp>"') -expect_str("process extent is ") +sendline('echo "process extent is [$tmp]"') +expect_str("process extent is [echo process # comment]") sendline(r"bind \cb 'set tmp (commandline --current-process | count)'") sendline(r'commandline "echo line1 \\" "# comment" "line2"')