#!perl -w # Copyright (C) 2021 all contributors # License: AGPL-3.0+ use strict; use v5.10.1; use PublicInbox::TestCommon; test_lei(sub { my $home = $ENV{HOME}; lei_ok qw(import t/plack-qp.eml); lei_ok qw(q --save z:0..), '-o', "$home/md/"; my @s = glob("$home/.local/share/lei/saved-searches/md-*"); is(scalar(@s), 1, 'got one saved search'); }); done_testing;