X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Flei.t;h=a46e46f24363f641591d81c5ffb4e3ae8e6adaea;hb=7349713101700e488231ad9ffece8ee42de0928c;hp=3f6702e6785b041092386816e3f4e0d577faa650;hpb=cf850cf6efac835445949b28ee0346f1dc34f8bd;p=public-inbox.git diff --git a/t/lei.t b/t/lei.t index 3f6702e6..a46e46f2 100644 --- a/t/lei.t +++ b/t/lei.t @@ -174,11 +174,11 @@ SKIP: { } $lei->('add-external', $url); my $mid = '20140421094015.GA8962@dcvr.yhbt.net'; - ok($lei->('q', "m:$mid"), "query $url"); + ok($lei->('q', '-q', "m:$mid"), "query $url"); is($err, '', "no errors on $url"); my $res = $json->decode($out); is($res->[0]->{'m'}, "<$mid>", "got expected mid from $url"); - ok($lei->('q', "m:$mid", 'd:..20101002'), 'no results, no error'); + ok($lei->('q', '-q', "m:$mid", 'd:..20101002'), 'no results, no error'); is($err, '', 'no output on 404, matching local FS behavior'); is($out, "[null]\n", 'got null results'); $lei->('forget-external', $url); @@ -291,12 +291,12 @@ my $test_external = sub { my @s = grep(/^Subject:/, $cat->()); is(scalar(@s), 1, "1 result in mbox$sfx"); $lei->('q', '-a', '-o', "mboxcl2:$f", 's:see attachment'); - is($err, '', 'no errors from augment'); + is(grep(!/^#/, $err), 0, 'no errors from augment'); @s = grep(/^Subject:/, my @wtf = $cat->()); is(scalar(@s), 2, "2 results in mbox$sfx"); $lei->('q', '-a', '-o', "mboxcl2:$f", 's:nonexistent'); - is($err, '', "no errors on no results ($sfx)"); + is(grep(!/^#/, $err), 0, "no errors on no results ($sfx)"); my @s2 = grep(/^Subject:/, $cat->()); is_deeply(\@s2, \@s,