]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei.t
lei: support "-C" to chdir in all sub commands
[public-inbox.git] / t / lei.t
diff --git a/t/lei.t b/t/lei.t
index 2e0b8a1fe9173b28562c784408d54184a8a3d7ed..ba179b394ac207f3b4940dbb8049846a468bec8c 100644 (file)
--- a/t/lei.t
+++ b/t/lei.t
@@ -129,6 +129,10 @@ my $test_completion = sub {
 };
 
 my $test_fail = sub {
+       lei('q', 'whatever', '-C', '/dev/null');
+       is($? >> 8, 1, 'chdir at end fails to /dev/null');
+       lei('-C', '/dev/null', 'q', 'whatever');
+       is($? >> 8, 1, 'chdir at beginning fails to /dev/null');
 SKIP: {
        skip 'no curl', 3 unless which('curl');
        lei(qw(q --only http://127.0.0.1:99999/bogus/ t:m));