From 8205b025ce01fc226b93700e76f50e0c4f839801 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Fri, 6 Oct 2023 11:58:26 +0200 Subject: [PATCH] use more descriptive expect proc name --- cmd/tools/vcreate/new_no_arg.expect | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/tools/vcreate/new_no_arg.expect b/cmd/tools/vcreate/new_no_arg.expect index 928b838eb875e3..fe9f97189e1b9f 100755 --- a/cmd/tools/vcreate/new_no_arg.expect +++ b/cmd/tools/vcreate/new_no_arg.expect @@ -5,7 +5,7 @@ set timeout 10 set v_root [lindex $argv 0] set project_name [lindex $argv 1] -proc assert {expect_ {send_ ""}} { +proc expect_then_send {expect_ {send_ ""}} { expect $expect_ { if {$send_ != ""} { send $send_ @@ -18,11 +18,11 @@ proc assert {expect_ {send_ ""}} { spawn $v_root/v run $v_root/cmd/tools/vcreate/ new -assert "Input your project name: " "$project_name\r" -assert "Input your project description: " "My awesome V project.\r" -assert "Input your project version: (0.0.0) " "0.1.0\r" -assert "Input your project license: (MIT) " "GPL\r" -assert "Initialising ..." -assert "Complete!" +expect_then_send "Input your project name: " "$project_name\r" +expect_then_send "Input your project description: " "My awesome V project.\r" +expect_then_send "Input your project version: (0.0.0) " "0.1.0\r" +expect_then_send "Input your project license: (MIT) " "GPL\r" +expect_then_send "Initialising ..." +expect_then_send "Complete!" expect eof