about summary refs log tree commit homepage
path: root/t/lei.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-23 04:01:14 -0600
committerEric Wong <e@80x24.org>2021-02-23 23:04:11 +0000
commit238422ea83adbe93145bbd18455ffffb84b53124 (patch)
tree6cba5b5c80d9afba95fecfb959f401440c1ec316 /t/lei.t
parent56b3493c79087979f10f5a3cae7deedaf4ec9fa3 (diff)
downloadpublic-inbox-238422ea83adbe93145bbd18455ffffb84b53124.tar.gz
We'll also support "-C" at the end of most commands to give
users a little more flexibility when building command-lines.
This conflicts with "lei daemon-kill -CHLD", so that's
special-cased since "-C" makes no sense with daemon-kill,
anyways.

Unlike "git show", the to-be-implemented "lei show" will diverge
and enable "--find-copies[=<n>]" by default, so "-C[<n>]" won't
be necessary.
Diffstat (limited to 't/lei.t')
-rw-r--r--t/lei.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/lei.t b/t/lei.t
index 2e0b8a1f..ba179b39 100644
--- 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));