Results for ysh-printing.test.sh

statusoshosh_ALT
pass 1111
FAIL 33
total1414
caseoshosh_ALTdescription
0pass pass Int
1pass pass Float
2pass pass Null
3pass pass Bool
4pass pass String
5pass pass Range
6pass pass Eggex (reference type)
7pass pass SparseArray, new representation for bash array
8pass pass BashArray, short
9FAIL FAIL BashArray, long
detailsdetails
10pass pass BashAssoc, short
11FAIL FAIL BashAssoc, long
detailsdetails
12pass pass Simple Cycles
13FAIL FAIL Complex Cycles
detailsdetails
22 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

osh9 BashArray, long

[osh stdout] Expected "(BashArray 'world' null '*.py')\n(BashArray\n 'Lorem' 'ipsum' 'dolor' 'sit' 'amet,'\n 'consectetur' 'adipiscing' 'elit,' 'sed' 'do'\n 'eiusmod.'\n)\n" Got "(BashArray 'world' null '*.py')\n(BashArray\n"
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
(BashArray 'world' null '*.py')
(BashArray
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 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 364, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch
    status = self._DoExpr(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr
    ui.PrettyPrintValue(val, mylib.Stdout())
  File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue
    printer.PrintValue(val, f)
  File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue
    self._PrintDoc(document, buf)
  File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc
    buf.write_spaces(frag.indent)
AttributeError: 'file' object has no attribute 'write_spaces'
osh_ALT9 BashArray, long

[osh_ALT stdout] Expected "(BashArray 'world' null '*.py')\n(BashArray\n 'Lorem' 'ipsum' 'dolor' 'sit' 'amet,'\n 'consectetur' 'adipiscing' 'elit,' 'sed' 'do'\n 'eiusmod.'\n)\n" Got "(BashArray 'world' null '*.py')\n(BashArray\n"
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
(BashArray 'world' null '*.py')
(BashArray
stderr:
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.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 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    return status
  File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch
    raise  # 'eval break' and 'source return.sh', etc.
  File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute
    errexit_loc = process_sub_st.locs[i]
  File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch
    status = self._DoExpr(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr
    ui.PrettyPrintValue(val, mylib.Stdout())
  File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue
    printer.PrintValue(val, f)
  File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue
    self._PrintDoc(document, buf)
  File "/home/uke/oil/data_lang/pretty.py", line 371, in _PrintDoc
    frag.is_flat, frag.measure))
AttributeError: 'file' object has no attribute 'write_spaces'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh11 BashAssoc, long

[osh stdout] Expected "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n ['Lorem']='ipsum'\n ['dolor']='sit amet,'\n ['consectetur adipiscing']='elit, sed'\n ['do']='eiusmod.'\n)\n" Got "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n"
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
(BashAssoc)
(BashAssoc ['1']='one')
(BashAssoc ['1']='one' ['two']='2' ['3']='three')
(BashAssoc
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 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 364, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch
    status = self._DoExpr(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr
    ui.PrettyPrintValue(val, mylib.Stdout())
  File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue
    printer.PrintValue(val, f)
  File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue
    self._PrintDoc(document, buf)
  File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc
    buf.write_spaces(frag.indent)
AttributeError: 'file' object has no attribute 'write_spaces'
osh_ALT11 BashAssoc, long

[osh_ALT stdout] Expected "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n ['Lorem']='ipsum'\n ['dolor']='sit amet,'\n ['consectetur adipiscing']='elit, sed'\n ['do']='eiusmod.'\n)\n" Got "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n"
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
(BashAssoc)
(BashAssoc ['1']='one')
(BashAssoc ['1']='one' ['two']='2' ['3']='three')
(BashAssoc
stderr:
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.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 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    return status
  File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch
    raise  # 'eval break' and 'source return.sh', etc.
  File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute
    errexit_loc = process_sub_st.locs[i]
  File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch
    status = self._DoExpr(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr
    ui.PrettyPrintValue(val, mylib.Stdout())
  File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue
    printer.PrintValue(val, f)
  File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue
    self._PrintDoc(document, buf)
  File "/home/uke/oil/data_lang/pretty.py", line 371, in _PrintDoc
    frag.is_flat, frag.measure))
AttributeError: 'file' object has no attribute 'write_spaces'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh13 Complex Cycles

[osh stdout] Expected '(Dict)\n{\n nothing: null,\n simple_cycle: [[[...]]],\n tricky_cycle: [{...}],\n dag: [[1, 2, [...]], [1, 2, [...]]],\n key_alpha: {omega: {alpha: {...}}},\n key_omega: {alpha: {omega: {...}}}\n}\n' Got '(Dict)\n'
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
(Dict)
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 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 364, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch
    status = self._DoExpr(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr
    ui.PrettyPrintValue(val, mylib.Stdout())
  File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue
    printer.PrintValue(val, f)
  File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue
    self._PrintDoc(document, buf)
  File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc
    buf.write_spaces(frag.indent)
AttributeError: 'file' object has no attribute 'write_spaces'
osh_ALT13 Complex Cycles

[osh_ALT stdout] Expected '(Dict)\n{\n nothing: null,\n simple_cycle: [[[...]]],\n tricky_cycle: [{...}],\n dag: [[1, 2, [...]], [1, 2, [...]]],\n key_alpha: {omega: {alpha: {...}}},\n key_omega: {alpha: {omega: {...}}}\n}\n' Got '(Dict)\n'
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
(Dict)
stderr:
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.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 1137, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 375, in Batch
    return status
  File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch
    raise  # 'eval break' and 'source return.sh', etc.
  File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute
    errexit_loc = process_sub_st.locs[i]
  File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch
    status = self._DoExpr(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr
    ui.PrettyPrintValue(val, mylib.Stdout())
  File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue
    printer.PrintValue(val, f)
  File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue
    self._PrintDoc(document, buf)
  File "/home/uke/oil/data_lang/pretty.py", line 371, in _PrintDoc
    frag.is_flat, frag.measure))
AttributeError: 'file' object has no attribute 'write_spaces'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47