Results for oil-slice-range.test.sh

statusoshosh_ALT
pass 1313
FAIL 11
total1414
caseoshosh_ALTdescription
0pass pass ranges have higher precedence than comparison (disabled)
1pass pass ranges have lower precedence than bitwise operators
2pass pass subscript and range of array
3pass pass subscript and range of list
4pass pass expressions and negative indices
5pass pass Range loop
6pass pass Explicit range with step
7pass pass Explicit slice with step
8pass pass Index with a Tuple
9pass pass Index with expression
10pass pass Copy wtih a[:]
11pass pass Slices with Multilple Dimensions (with Table/data frame)
12FAIL FAIL Slice with Range
detailsdetails
13pass pass Range with list constructor
26 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

osh12 Slice with Range

[osh stdout] Expected 'a\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 969, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 915, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 888, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 704, in ShellMain
    status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 166, in Batch
    is_return, is_fatal = ex.ExecuteAndCatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1873, in ExecuteAndCatch
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1818, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1175, in _Dispatch
    py_val = self.expr_ev.EvalExpr(node.rhs)
  File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 501, in EvalExpr
    return obj[index]
TypeError: list indices must be integers, not xrange
osh_ALT12 Slice with Range

[osh_ALT stdout] Expected 'a\n', got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 944, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 915, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 888, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 704, in ShellMain
    status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 172, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1873, in ExecuteAndCatch
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1818, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1207, in _Dispatch
    lookup_mode = scope_e.LocalOrGlobal
  File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 501, in EvalExpr
    return obj[index]
TypeError: list indices must be integers, not xrange
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.pre3/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47