Results for oil-assign.test.sh

statusoshosh_ALT
pass 66
FAIL 33
total99
caseoshosh_ALTdescription
0pass pass integers expression and augmented assignment
1pass pass command sub $(echo hi)
2pass pass shell array @(a 'b c')
3pass pass Shell arrays support tilde detection, static globbing, brace detection
4pass pass augmented assignment doesn't work on shell arrays
5FAIL FAIL Splice in a Python list (i.e. Oil Obj var in word evaluator)
detailsdetails
6pass pass Set $HOME using 'var' (i.e. Oil string var in word evaluator)
7FAIL FAIL Use shell var in Oil expression
detailsdetails
8FAIL FAIL Length in two different contexts
detailsdetails
12 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

osh5 Splice in a Python list (i.e. Oil Obj var in word evaluator)

[osh stdout] Expected "['one', 'two']\n", got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  argv.py @mylist
          ^~~~~~~
[ stdin ]:3: fatal: Can't splice non-array 'mylist'
osh_ALT5 Splice in a Python list (i.e. Oil Obj var in word evaluator)

[osh_ALT stdout] Expected "['one', 'two']\n", got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
  argv.py @mylist
          ^~~~~~~
[ stdin ]:3: fatal: Can't splice non-array 'mylist'
osh7 Use shell var in Oil expression

[osh stdout] Expected '3\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 914, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 872, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 842, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 652, 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 159, in Batch
    is_return, is_fatal = ex.ExecuteAndCatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1282, in ExecuteAndCatch
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1230, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 818, in _Dispatch
    py_val = self.expr_ev.EvalRHS(node.rhs)
  File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 147, in EvalRHS
    raise NotImplementedError(node.__class__.__name__)
NotImplementedError: expr__FuncCall
osh_ALT7 Use shell var in Oil expression

[osh_ALT stdout] Expected '3\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 901, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 872, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 842, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 652, 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 165, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1282, in ExecuteAndCatch
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1230, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1172, in _Dispatch
    libc.print_time(real, user, sys_)
  File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 147, in EvalRHS
    raise NotImplementedError(node.__class__.__name__)
NotImplementedError: expr__FuncCall
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.7.pre3/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh8 Length in two different contexts

[osh stdout] Expected 'shell=5\noil=20\n', got 'shell=5\n'
[osh status] Expected 0, got 2

stdout:
shell=5
stderr:
[??? no location ???] Expected ), got (token id:Lit_Chars val:x span_id:40)
osh_ALT8 Length in two different contexts

[osh_ALT stdout] Expected 'shell=5\noil=20\n', got 'shell=5\n'
[osh_ALT status] Expected 0, got 2

stdout:
shell=5
stderr:
[??? no location ???] Expected ), got (token id:Lit_Chars val:x span_id:40)