Browse Source

Fix bad usage string assumption in test

$0 is not changed by functions so this could not have worked (strange it
*did* work on Fedora, I still have to find out why).
Alois Mahdal 6 years ago
parent
commit
bca0179eeb
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      tests/cli/TF_RUN
  2. 1
    1
      tests/cli/oracle/usage.stderr

+ 1
- 0
tests/cli/TF_RUN View File

@@ -19,6 +19,7 @@ tf_do_subtest() {
19 19
     SATURNIN_CACHE_HOME=chm
20 20
     SATURNIN_LIBEXEC=lex
21 21
     SATURNIN_LIBEXEC_PREFIX=lexpfx-
22
+    PRETTY_USAGE=self=lexpfx
22 23
     mkdir lex
23 24
     touch lex/lexpfx-{foo,bar,baz}
24 25
     chmod +x lex/lexpfx-{foo,bar,baz}

+ 1
- 1
tests/cli/oracle/usage.stderr View File

@@ -1,5 +1,5 @@
1 1
 usage:
2
-  saturnin__usage [options] COMMAND [ARG...]
2
+  lexpfx [options] COMMAND [ARG...]
3 3
 
4 4
 options:
5 5
   -D, --full-debug   turn on gory debugging