From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D69451F670 for ; Sat, 16 Oct 2021 07:54:03 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/lei*: set EDITOR for dumb terminals Date: Sat, 16 Oct 2021 07:54:03 +0000 Message-Id: <20211016075403.18183-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Running tests over a non-interactive ssh session fails, otherwise. --- t/lei-q-remote-import.t | 2 +- t/lei.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/lei-q-remote-import.t b/t/lei-q-remote-import.t index fdf6a11e..92d8c9b6 100644 --- a/t/lei-q-remote-import.t +++ b/t/lei-q-remote-import.t @@ -99,7 +99,7 @@ EOF lei_ok('up', "$ENV{HOME}/md"); is_deeply(\@f, [ glob("$ENV{HOME}/md/*/*") ], 'lei up remote dedupe works on maildir'); - my $edit_env = { VISUAL => 'cat' }; + my $edit_env = { VISUAL => 'cat', EDITOR => 'cat' }; lei_ok([qw(edit-search), "$ENV{HOME}/md"], $edit_env); like($lei_out, qr/^\Q[external "$url"]\E\n\s*lastresult = \d+/sm, 'lastresult set'); diff --git a/t/lei.t b/t/lei.t index 53fc43fb..f7de1b71 100644 --- a/t/lei.t +++ b/t/lei.t @@ -101,7 +101,7 @@ my $test_config = sub { lei_ok(qw(-c imap.debug=a -c imap.debug=b config --get-all imap.debug)); is($lei_out, "a\nb\n", '-c and --get-all work together'); - lei_ok([qw(config -e)], { VISUAL => 'cat' }); + lei_ok([qw(config -e)], { VISUAL => 'cat', EDITOR => 'cat' }); is($lei_out, "[a]\n\tb = c\n", '--edit works'); };