/home/uke/oil/bin/osh sh-usage: spec test case results

Results for sh-usage.test.sh

statusosh
pass 12
FAIL 1
total13
caseoshdescription
0pass sh -c
1pass empty -c input
2pass sh +c is accepted
3pass empty stdin
4FAIL shell obeys --help (regression for OSH)
details
5pass args are passed
6pass args that look like flags are passed after script
7pass args that look like flags are passed after -c
8pass exit with explicit arg
9pass exit with no args
10pass --rcfile in non-interactive shell prints warnings
11pass accepts -l flag
12pass accepts --login flag (dash and mksh don't accept long flags)
12 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh0 sh -c

stdout:
hi
stderr:
osh1 empty -c input

stdout:
stderr: 
osh2 sh +c is accepted

stdout:
hi
stderr:
osh3 empty stdin

stdout:
stderr: 
osh4 shell obeys --help (regression for OSH)

[osh stderr] Found 'Traceback (most recent'

stdout:
yes
stderr:
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 320, in Main
    util.HelpFlag(loader, '%s-usage' % lang, mylib.Stdout())
  File "/home/uke/oil/core/util.py", line 161, in HelpFlag
    assert found, 'Missing %s' % topic_id
AssertionError: Missing osh-usage
osh5 args are passed

stdout:
['a', 'b']
stderr:
osh6 args that look like flags are passed after script

stdout:
['--help', '--help', '-h']
stderr:
osh7 args that look like flags are passed after -c

stdout:
['--help', '-h']
stderr:
osh8 exit with explicit arg

stdout:
stderr: 
osh9 exit with no args

stdout:
stderr: 
osh10 --rcfile in non-interactive shell prints warnings

stdout:
rc
^D
==> interactive.txt <==
osh-0.22.0$ 
==> non-interactive.txt <==
osh warning: --rcfile ignored with --norc
osh warning: --rcfile ignored in non-interactive shell
stderr:
warned=1
warned=0
osh11 accepts -l flag

stdout:
stderr: 
osh12 accepts --login flag (dash and mksh don't accept long flags)

stdout:
stderr: