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 7 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
     SATURNIN_CACHE_HOME=chm
19
     SATURNIN_CACHE_HOME=chm
20
     SATURNIN_LIBEXEC=lex
20
     SATURNIN_LIBEXEC=lex
21
     SATURNIN_LIBEXEC_PREFIX=lexpfx-
21
     SATURNIN_LIBEXEC_PREFIX=lexpfx-
22
+    PRETTY_USAGE=self=lexpfx
22
     mkdir lex
23
     mkdir lex
23
     touch lex/lexpfx-{foo,bar,baz}
24
     touch lex/lexpfx-{foo,bar,baz}
24
     chmod +x lex/lexpfx-{foo,bar,baz}
25
     chmod +x lex/lexpfx-{foo,bar,baz}

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

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