user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] t/lei*: set EDITOR for dumb terminals
@ 2021-10-16  7:54 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-10-16  7:54 UTC (permalink / raw)
  To: meta

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');
 };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-16  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16  7:54 [PATCH] t/lei*: set EDITOR for dumb terminals Eric Wong

Code repositories for project(s) associated with this inbox:

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).