Results for ysh-builtin-shopt.test.sh

statusosh
pass 6
FAIL 3
total9
caseoshdescription
0FAIL shopt supports long flags
details
1pass shopt supports 'set' options
2pass shopt --unset errexit { }
3pass shopt -p works correctly inside block
4FAIL shopt --set GROUP { }
details
5pass shopt and block status
6pass shopt usage error
7pass shopt -p
8FAIL TODO: all options as a table
details
6 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh0 shopt supports long flags

[osh status] Expected 0, got 1

stdout:
shopt -u nullglob
shopt -s nullglob
shopt -u nullglob
stderr:
osh4 shopt --set GROUP { }

[osh stdout] Expected 'shopt -u command_sub_errexit\nshopt -u inherit_errexit\nshopt -u strict_errexit\nshopt -u verbose_errexit\n---\nshopt -s command_sub_errexit\nshopt -s inherit_errexit\nshopt -s strict_errexit\nshopt -s verbose_errexit\n---\nshopt -s command_sub_errexit\nshopt -s inherit_errexit\nshopt -u strict_errexit\nshopt -s verbose_errexit\n---\nshopt -u command_sub_errexit\nshopt -u inherit_errexit\nshopt -s strict_errexit\nshopt -u verbose_errexit\n' Got 'shopt -u command_sub_errexit\nshopt -u inherit_errexit\nshopt -u strict_errexit\nshopt -u verbose_errexit\n---\nshopt -s command_sub_errexit\nshopt -s inherit_errexit\nshopt -s strict_errexit\nshopt -s verbose_errexit\n'
[osh status] Expected 0, got 1

stdout:
shopt -u command_sub_errexit
shopt -u inherit_errexit
shopt -u strict_errexit
shopt -u verbose_errexit
---
shopt -s command_sub_errexit
shopt -s inherit_errexit
shopt -s strict_errexit
shopt -s verbose_errexit
stderr:
    shopt -p | grep errexit
    ^~~~~
[ stdin ]:7: errexit PID 37401: command.Simple failed with status 1
osh8 TODO: all options as a table

[osh status] Expected 0, got 2

stdout:
stderr: 
  shopt --table
        ^~~~~~~
[ stdin ]:1: 'shopt' got invalid flag '--table'