RUN asdl/examples/typed_arith_parse_test.py > _test/py-unit/asdl/examples/typed_arith_parse_test.py.log OK RUN asdl/format_test.py > _test/py-unit/asdl/format_test.py.log OK RUN asdl/front_end_test.py > _test/py-unit/asdl/front_end_test.py.log OK RUN asdl/gen_python_test.py > _test/py-unit/asdl/gen_python_test.py.log OK RUN benchmarks/uftrace_allocs_test.py > _test/py-unit/benchmarks/uftrace_allocs_test.py.log OK RUN build/dynamic_deps_test.py > _test/py-unit/build/dynamic_deps_test.py.log OK RUN build/ninja_lib_test.py > _test/py-unit/build/ninja_lib_test.py.log OK RUN builtin/bracket_osh_test.py > _test/py-unit/builtin/bracket_osh_test.py.log OK RUN builtin/completion_osh_test.py > _test/py-unit/builtin/completion_osh_test.py.log OK RUN builtin/func_misc_test.py > _test/py-unit/builtin/func_misc_test.py.log OK RUN builtin/misc_osh_test.py > _test/py-unit/builtin/misc_osh_test.py.log OK RUN builtin/read_osh_test.py > _test/py-unit/builtin/read_osh_test.py.log OK RUN builtin/readline_osh_test.py > _test/py-unit/builtin/readline_osh_test.py.log OK RUN core/alloc_test.py > _test/py-unit/core/alloc_test.py.log OK RUN core/comp_ui_test.py > _test/py-unit/core/comp_ui_test.py.log OK RUN core/completion_test.py > _test/py-unit/core/completion_test.py.log === /home/uke/oil/_test/py-unit/core/completion_test.py.log === . -- PREFIX 'm' -- PREFIX 'opy/doc' -- PREFIX o -- PREFIX nonexistent/ -- PREFIX README. -- PREFIX core -- PREFIX asdl/R -- PREFIX opy/doc -- PREFIX opy/doc/ -- PREFIX /bi -- PREFIX /tmp/oil_comp_test/ -- PREFIX ./o -- PREFIX i ..Running completion function 'f' with 3 arguments comp.first '', commands_changed: ... --- Case 3: 'noflags foo:bar --color=auto\t' with flags [] EE[] ['../oil/'] py rb (None, None) words: { } redirects: tokens: alias_words: line: 'gre' rl_slice from byte 0 to 3: 'gre' Completing words partial_argv: [gre] alias_words: [[]] ** DISPLAY_POS = 0 Completing 'gre' ... (Ctrl-C to cancel) Found 1 match for 'gre' in 0 ms words: { } redirects: tokens: alias_words: line: 'echo $(gre' rl_slice from byte 0 to 10: 'echo $(gre' Completing words partial_argv: [gre] alias_words: [[]] ** DISPLAY_POS = 7 Completing 'echo $(gre' ... (Ctrl-C to cancel) Found 1 match for 'echo $(gre' in 0 ms words: { } redirects: tokens: alias_words: line: 'echo `gre' rl_slice from byte 0 to 9: 'echo `gre' Completing words partial_argv: [gre] alias_words: [[]] ** DISPLAY_POS = 6 Completing 'echo `gre' ... (Ctrl-C to cancel) Found 1 match for 'echo `gre' in 0 ms words: {}{ } redirects: tokens: alias_words: line: 'echo `grep f' rl_slice from byte 0 to 12: 'echo `grep f' Completing words partial_argv: [grep,f] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 11 line: (SourceLine line_num:1 content:"echo `grep f" src:(source.MainFile path:"")) tval: f ) (Token id:Id.Lit_CompDummy length:0 col:12 line:...0x7fed77887260 tval:"") ] )] display_pos 11 Completing 'echo `grep f' ... (Ctrl-C to cancel) Found 2 matches for 'echo `grep f' in 0 ms . words: {}{ } redirects: tokens: alias_words: line: 'echo ~r' rl_slice from byte 0 to 7: 'echo ~r' words: {}{ } redirects: tokens: alias_words: line: 'echo ~' rl_slice from byte 0 to 6: 'echo ~' words: {}{ } redirects: tokens: alias_words: line: 'echo a~' rl_slice from byte 0 to 7: 'echo a~' Completing words partial_argv: [echo,a~] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 5 line: (SourceLine line_num:1 content:"echo a~" src:(source.MainFile path:"")) tval: a ) (Token id:Id.Lit_Tilde length:1 col:6 line:...0x7fed77887368 tval:"~") (Token id:Id.Lit_CompDummy length:0 col:7 line:...0x7fed77887368 tval:"") ] )] display_pos 5 Completing 'echo a~' ... (Ctrl-C to cancel) Found 0 matches for 'echo a~' in 0 ms . words: {} redirects: (Redir op: loc:(redir_loc.Fd fd:0) arg:{ }) tokens: alias_words: line: 'cat < b' rl_slice from byte 0 to 7: 'cat < b' Completing redirect arg words: {} redirects: (Redir op:&"> loc:(redir_loc.Fd fd:1) arg:{}) tokens: &"> alias_words: line: 'echo >&' rl_slice from byte 0 to 7: 'echo >&' Didn't find anything to complete .. words: {}{ } redirects: tokens: alias_words: line: 'echo $' rl_slice from byte 0 to 6: 'echo $' words: {}{($ P) } redirects: tokens: alias_words: line: 'echo $P' rl_slice from byte 0 to 7: 'echo $P' words: redirects: tokens: alias_words: line: 'echo _${' rl_slice from byte 0 to 8: 'echo _${' words: redirects: tokens: alias_words: line: 'echo ${P' rl_slice from byte 0 to 8: 'echo ${P' words: redirects: tokens: alias_words: line: 'echo ${undef:-$P' rl_slice from byte 0 to 16: 'echo ${undef:-$P' words: redirects: tokens: alias_words: line: 'echo ${undef:-$' rl_slice from byte 0 to 15: 'echo ${undef:-$' words: redirects: tokens: alias_words: line: 'echo "$' rl_slice from byte 0 to 7: 'echo "$' words: redirects: tokens: alias_words: line: 'echo "$P' rl_slice from byte 0 to 8: 'echo "$P' words: redirects: tokens: alias_words: line: 'echo "${#P' rl_slice from byte 0 to 10: 'echo "${#P' words: redirects: tokens: alias_words: line: 'echo "$((PWD +P' rl_slice from byte 0 to 15: 'echo "$((PWD +P' words: redirects: tokens: alias_words: line: 'echo "$(( $P' rl_slice from byte 0 to 12: 'echo "$(( $P' . words: {}{ } redirects: tokens: alias_words: line: 'grep f' rl_slice from byte 0 to 6: 'grep f' Completing words partial_argv: [grep,f] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 5 line: (SourceLine line_num:1 content:"grep f" src:(source.MainFile path:"")) tval: f ) (Token id:Id.Lit_CompDummy length:0 col:6 line:...0x7fed77887418 tval:"") ] )] display_pos 5 Completing 'grep f' ... (Ctrl-C to cancel) Found 2 matches for 'grep f' in 0 ms words: {}{ } redirects: tokens: alias_words: line: 'grep g' rl_slice from byte 0 to 6: 'grep g' Completing words partial_argv: [grep,g] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 5 line: (SourceLine line_num:1 content:"grep g" src:(source.MainFile path:"")) tval: g ) (Token id:Id.Lit_CompDummy length:0 col:6 line:...0x7fed778873c0 tval:"") ] )] display_pos 5 Completing 'grep g' ... (Ctrl-C to cancel) Found 0 matches for 'grep g' in 0 ms words: { } redirects: tokens: alias_words: line: 'g' rl_slice from byte 0 to 1: 'g' Completing words partial_argv: [g] alias_words: [[]] ** DISPLAY_POS = 0 Completing 'g' ... (Ctrl-C to cancel) Found 1 match for 'g' in 0 ms words: {} redirects: tokens: alias_words: line: '' rl_slice from byte 0 to 0: '' Completing words partial_argv: [] alias_words: [[]] ** DISPLAY_POS = 0 Completing '' ... (Ctrl-C to cancel) Found 3 matches for '' in 0 ms words: {}{ } redirects: tokens: alias_words: line: 'echo hi || grep f' rl_slice from byte 0 to 17: 'echo hi || grep f' Completing words partial_argv: [grep,f] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 16 line: (SourceLine line_num: 1 content: "echo hi || grep f" src: (source.MainFile path:"") ) tval: f ) (Token id:Id.Lit_CompDummy length:0 col:17 line:...0x7fed778872b8 tval:"") ] )] display_pos 16 Completing 'echo hi || grep f' ... (Ctrl-C to cancel) Found 2 matches for 'echo hi || grep f' in 0 ms words: {}{ } redirects: tokens: alias_words: line: 'echo hi; grep f' rl_slice from byte 0 to 15: 'echo hi; grep f' Completing words partial_argv: [grep,f] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 14 line: (SourceLine line_num:1 content:"echo hi; grep f" src:(source.MainFile path:"")) tval: f ) (Token id:Id.Lit_CompDummy length:0 col:15 line:...0x7fed77887260 tval:"") ] )] display_pos 14 Completing 'echo hi; grep f' ... (Ctrl-C to cancel) Found 2 matches for 'echo hi; grep f' in 0 ms words: {}{ } redirects: tokens: alias_words: line: '{ echo hi; grep f' rl_slice from byte 0 to 17: '{ echo hi; grep f' Completing words partial_argv: [grep,f] alias_words: [[]] words[-1]: [(CompoundWord parts: [ (Token id: Id.Lit_Chars length: 1 col: 16 line: (SourceLine line_num: 1 content: "{ echo hi; grep f" src: (source.MainFile path:"") ) tval: f ) (Token id:Id.Lit_CompDummy length:0 col:17 line:...0x7fed77887208 tval:"") ] )] display_pos 16 Completing '{ echo hi; grep f' ... (Ctrl-C to cancel) Found 2 matches for '{ echo hi; grep f' in 0 ms words: redirects: tokens: alias_words: line: 'var=$v' rl_slice from byte 0 to 6: 'var=$v' words: {}{} redirects: tokens: alias_words: line: 'local var=$v' rl_slice from byte 0 to 12: 'local var=$v' .EE ====================================================================== ERROR: testMatchesOracle (__main__.InitCompletionTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/uke/oil/core/completion_test.py", line 779, in testMatchesOracle mem=mem) File "/home/uke/oil/core/test_lib.py", line 338, in EvalCode main_loop.Batch(cmd_ev, c_parser, errfmt) # Parse and execute! 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 1679, in _Dispatch self._DoShFunction(node) File "/home/uke/oil/osh/cmd_eval.py", line 1285, in _DoShFunction if self.procs.GetProc(node.name) and not self.exec_opts.redefine_proc_func(): AttributeError: 'dict' object has no attribute 'GetProc' ====================================================================== ERROR: testCompletesAliases (__main__.RootCompleterTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/uke/oil/core/completion_test.py", line 514, in testCompletesAliases aliases=aliases) File "/home/uke/oil/core/test_lib.py", line 338, in EvalCode main_loop.Batch(cmd_ev, c_parser, errfmt) # Parse and execute! 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 1532, in _Dispatch status = self._DoSimple(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 827, in _DoSimple status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags) File "/home/uke/oil/osh/cmd_eval.py", line 518, in _RunSimpleCommand run_flags) File "/home/uke/oil/core/executor.py", line 284, in RunSimpleCommand proc_node = self.procs.GetProc(arg0) AttributeError: 'dict' object has no attribute 'GetProc' ====================================================================== ERROR: testNoInfiniteLoop (__main__.RootCompleterTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/uke/oil/core/completion_test.py", line 550, in testNoInfiniteLoop comp_lookup=comp_lookup) File "/home/uke/oil/core/test_lib.py", line 338, in EvalCode main_loop.Batch(cmd_ev, c_parser, errfmt) # Parse and execute! 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 1679, in _Dispatch self._DoShFunction(node) File "/home/uke/oil/osh/cmd_eval.py", line 1285, in _DoShFunction if self.procs.GetProc(node.name) and not self.exec_opts.redefine_proc_func(): AttributeError: 'dict' object has no attribute 'GetProc' ====================================================================== ERROR: testRunsUserDefinedFunctions (__main__.RootCompleterTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/uke/oil/core/completion_test.py", line 444, in testRunsUserDefinedFunctions comp_lookup=comp_lookup) File "/home/uke/oil/core/test_lib.py", line 338, in EvalCode main_loop.Batch(cmd_ev, c_parser, errfmt) # Parse and execute! 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 1532, in _Dispatch status = self._DoSimple(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 827, in _DoSimple status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags) File "/home/uke/oil/osh/cmd_eval.py", line 518, in _RunSimpleCommand run_flags) File "/home/uke/oil/core/executor.py", line 284, in RunSimpleCommand proc_node = self.procs.GetProc(arg0) AttributeError: 'dict' object has no attribute 'GetProc' ---------------------------------------------------------------------- Ran 16 tests in 0.036s FAILED (errors=4) FAIL: core/completion_test.py with code 1