Results for process-sub.test.sh

statusoshosh_.pyosh_.cc
pass 400
FAIL 044
total444
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL Process sub input
detailsdetails
1pass FAIL FAIL Process sub output
detailsdetails
2pass FAIL FAIL Non-linear pipeline with >()
detailsdetails
3pass FAIL FAIL $(<file) idiom with process sub
detailsdetails
4 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 Process sub input

[osh_.py stdout] Expected '1\n2\n2\n3\n', got '1\n2\n3\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
1
2
3
stderr:
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 538, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1854, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1441, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1321, in _EvalWordPart
    sv = self._EvalProcessSub(part.child, id_)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1950, in _EvalProcessSub
    dev_path = self.shell_ex.RunProcessSub(node, id_)
AttributeError: 'NoneType' object has no attribute 'RunProcessSub'
osh_.cc0 Process sub input

[osh_.cc stdout] Expected '1\n2\n2\n3\n', got "1\n2\n3\n(cmd_value.Argv argv:[cat '' ''] arg_spids:[26 28 38])\n"

stdout:
1
2
3
(cmd_value.Argv argv:[cat '' ''] arg_spids:[26 28 38])
stderr:
Unhandled SimpleCommand
osh_.py1 Process sub output

[osh_.py stdout] Expected '3\n2\n1\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1313, in _Execute
    redirects = self._EvalRedirects(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 470, in _EvalRedirects
    result.append(self._EvalRedirect(redir))
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 353, in _EvalRedirect
    val = self.word_ev.EvalWordToString(arg_word)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1484, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1321, in _EvalWordPart
    sv = self._EvalProcessSub(part.child, id_)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1950, in _EvalProcessSub
    dev_path = self.shell_ex.RunProcessSub(node, id_)
AttributeError: 'NoneType' object has no attribute 'RunProcessSub'
osh_.cc1 Process sub output

[osh_.cc stdout] Expected '3\n2\n1\n', got '1\n2\n3\n'

stdout:
1
2
3
stderr:
osh_.py2 Non-linear pipeline with >()

[osh_.py stdout] Expected 'OUT\nwarning: e2\no2\no1\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 30
osh_.cc2 Non-linear pipeline with >()

[osh_.cc stdout] Expected 'OUT\nwarning: e2\no2\no1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py3 $(<file) idiom with process sub

[osh_.py stdout] Expected 'FOO\nhi\n', got 'FOO\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
FOO
stderr:
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main
    status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 538, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1854, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1441, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1318, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1945, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc3 $(<file) idiom with process sub

[osh_.cc stdout] Expected 'FOO\nhi\n', got 'FOO\n\n(cmd_value.Argv argv:[tr A-Z a-z] arg_spids:[14 16 18])\n(cmd_value.Argv argv:[cat] arg_spids:[27])\n'

stdout:
FOO

(cmd_value.Argv argv:[tr A-Z a-z] arg_spids:[14 16 18])
(cmd_value.Argv argv:[cat] arg_spids:[27])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand