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 asdl/target_lang_test.py > _test/py-unit/asdl/target_lang_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 client/py_fanos_test.py > _test/py-unit/client/py_fanos_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
..E..
--- Case 3: 'noflags foo:bar --color=auto\t' with flags []

EE[]
['../oil/']
py <core.completion.UserSpec object at 0x7f422a298ad0>
rb (None, None)
  words:
(w <Lit_Chars gre> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars gre>
<Lit_CompDummy "">
<Eof_Real "">

  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:
(w <Lit_Chars gre> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DollarParen "$(">
<Lit_Chars gre>
<Lit_CompDummy "">
<Eof_Real "">

  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:
(w <Lit_Chars gre> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_Backtick "`">
<Lit_Chars gre>
<Lit_CompDummy "">
<Eof_Real "">

  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:
(w <Lit_Chars grep>)
(w <Lit_Chars f> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_Backtick "`">
<Lit_Chars grep>
<WS_Space " ">
<Lit_Chars f>
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:11
      line:(SourceLine
        line_num:1
        content:"echo `grep f"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:f
    )
    (Token id:Lit_CompDummy length:0 col:12 line:...0x7f422a215578 tval:"")
  ]
)
]
display_pos 11
Completing 'echo `grep f' ... (Ctrl-C to cancel)
Found 2 matches for 'echo `grep f' in 0 ms
.<Api 'echo ~r' 0-7>
  words:
(w <Lit_Chars echo>)
(w <Lit_Tilde "~"> <Lit_Chars r> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Tilde "~">
<Lit_Chars r>
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo ~r'
rl_slice from byte 0 to 7: 'echo ~r'
<Api 'echo ~' 0-6>
  words:
(w <Lit_Chars echo>)
(w <Lit_Tilde "~"> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Tilde "~">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo ~'
rl_slice from byte 0 to 6: 'echo ~'
  words:
(w <Lit_Chars echo>)
(w <Lit_Chars a> <Lit_Tilde "~"> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Chars a>
<Lit_Tilde "~">
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:5
      line:(SourceLine
        line_num:1
        content:"echo a~"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:a
    )
    (Token id:Lit_Tilde length:1 col:6 line:...0x7f422a215788 tval:"~")
    (Token id:Lit_CompDummy length:0 col:7 line:...0x7f422a215788 tval:"")
  ]
)
]
display_pos 5
Completing 'echo a~' ... (Ctrl-C to cancel)
Found 0 matches for 'echo a~' in 0 ms
.  words:
(w <Lit_Chars cat>)

  redirects:
(Redir
  op:<Redir_Less "<">
  loc:(redir_loc.Fd fd:0)
  arg:(w <Lit_Chars b> <Lit_CompDummy "">)
)

  tokens:
<Lit_Chars cat>
<WS_Space " ">
<Redir_Less "<">
<WS_Space " ">
<Lit_Chars b>
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'cat < b'
rl_slice from byte 0 to 7: 'cat < b'
Completing redirect arg
  words:
(w <Lit_Chars echo>)

  redirects:
(Redir
  op:<Redir_GreatAnd ">&">
  loc:(redir_loc.Fd fd:1)
  arg:(w <Lit_CompDummy "">)
)

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Redir_GreatAnd ">&">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo >&'
rl_slice from byte 0 to 7: 'echo >&'
Didn't find anything to complete
..<Api 'echo $' 0-6>
  words:
(w <Lit_Chars echo>)
(w <Lit_Dollar "$"> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Dollar "$">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo $'
rl_slice from byte 0 to 6: 'echo $'
<Api 'echo $P' 0-7>
  words:
(w <Lit_Chars echo>)
(w ($ P) <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<VSub_DollarName "$P">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo $P'
rl_slice from byte 0 to 7: 'echo $P'
<Api 'echo _${' 0-8>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Chars _>
<Left_DollarBrace "${">
<Lit_CompDummy "">

  alias_words:

line: 'echo _${'
rl_slice from byte 0 to 8: 'echo _${'
<Api 'echo ${P' 0-8>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DollarBrace "${">
<VSub_Name P>
<Lit_CompDummy "">

  alias_words:

line: 'echo ${P'
rl_slice from byte 0 to 8: 'echo ${P'
<Api 'echo ${undef:-$P' 0-16>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DollarBrace "${">
<VSub_Name undef>
<VTest_ColonHyphen ":-">
<VSub_DollarName "$P">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo ${undef:-$P'
rl_slice from byte 0 to 16: 'echo ${undef:-$P'
<Api 'echo ${undef:-$' 0-15>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DollarBrace "${">
<VSub_Name undef>
<VTest_ColonHyphen ":-">
<Lit_Dollar "$">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo ${undef:-$'
rl_slice from byte 0 to 15: 'echo ${undef:-$'
<Api 'echo "$' 0-7>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DoubleQuote "\"">
<Lit_Dollar "$">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo "$'
rl_slice from byte 0 to 7: 'echo "$'
<Api 'echo "$P' 0-8>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DoubleQuote "\"">
<VSub_DollarName "$P">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo "$P'
rl_slice from byte 0 to 8: 'echo "$P'
<Api 'echo "${#P' 0-10>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DoubleQuote "\"">
<Left_DollarBrace "${">
<VSub_Pound "#">
<VSub_Name P>
<Lit_CompDummy "">

  alias_words:

line: 'echo "${#P'
rl_slice from byte 0 to 10: 'echo "${#P'
<Api 'echo "$((PWD +P' 0-15>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DoubleQuote "\"">
<Left_DollarDParen "$((">
<Lit_ArithVarLike PWD>
<Ignored_Space " ">
<Arith_Plus "+">
<Lit_ArithVarLike P>
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo "$((PWD +P'
rl_slice from byte 0 to 15: 'echo "$((PWD +P'
<Api 'echo "$(( $P' 0-12>
  words:

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Left_DoubleQuote "\"">
<Left_DollarDParen "$((">
<Ignored_Space " ">
<VSub_DollarName "$P">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'echo "$(( $P'
rl_slice from byte 0 to 12: 'echo "$(( $P'
.  words:
(w <Lit_Chars grep>)
(w <Lit_Chars f> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars grep>
<WS_Space " ">
<Lit_Chars f>
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:5
      line:(SourceLine
        line_num:1
        content:"grep f"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:f
    )
    (Token id:Lit_CompDummy length:0 col:6 line:...0x7f422a20e418 tval:"")
  ]
)
]
display_pos 5
Completing 'grep f' ... (Ctrl-C to cancel)
Found 2 matches for 'grep f' in 0 ms
  words:
(w <Lit_Chars grep>)
(w <Lit_Chars g> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars grep>
<WS_Space " ">
<Lit_Chars g>
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:5
      line:(SourceLine
        line_num:1
        content:"grep g"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:g
    )
    (Token id:Lit_CompDummy length:0 col:6 line:...0x7f422a26ae10 tval:"")
  ]
)
]
display_pos 5
Completing 'grep g' ... (Ctrl-C to cancel)
Found 0 matches for 'grep g' in 0 ms
  words:
(w <Lit_Chars g> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars g>
<Lit_CompDummy "">
<Eof_Real "">

  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:
(w <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_CompDummy "">
<Eof_Real "">

  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:
(w <Lit_Chars grep>)
(w <Lit_Chars f> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Chars hi>
<WS_Space " ">
<Op_DPipe "||">
<WS_Space " ">
<Lit_Chars grep>
<WS_Space " ">
<Lit_Chars f>
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:16
      line:(SourceLine
        line_num:1
        content:"echo hi || grep f"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:f
    )
    (Token id:Lit_CompDummy length:0 col:17 line:...0x7f422a215470 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:
(w <Lit_Chars grep>)
(w <Lit_Chars f> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars echo>
<WS_Space " ">
<Lit_Chars hi>
<Op_Semi ";">
<WS_Space " ">
<Lit_Chars grep>
<WS_Space " ">
<Lit_Chars f>
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:14
      line:(SourceLine
        line_num:1
        content:"echo hi; grep f"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:f
    )
    (Token id:Lit_CompDummy length:0 col:15 line:...0x7f422a215680 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:
(w <Lit_Chars grep>)
(w <Lit_Chars f> <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_LBrace "{">
<WS_Space " ">
<Lit_Chars echo>
<WS_Space " ">
<Lit_Chars hi>
<Op_Semi ";">
<WS_Space " ">
<Lit_Chars grep>
<WS_Space " ">
<Lit_Chars f>
<Lit_CompDummy "">
<Eof_Real "">

  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:Lit_Chars
      length:1
      col:16
      line:(SourceLine
        line_num:1
        content:"{ echo hi; grep f"
        src:(source.MainFile path:"<test_lib>")
      )
      tval:f
    )
    (Token id:Lit_CompDummy length:0 col:17 line:...0x7f422a215890 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:
<Lit_VarLike "var=">
<VSub_DollarName "$v">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'var=$v'
rl_slice from byte 0 to 6: 'var=$v'
  words:
(w <Lit_Chars local>)
(w <Lit_VarLike "var="> ($ v) <Lit_CompDummy "">)

  redirects:

  tokens:
<Lit_Chars local>
<WS_Space " ">
<Lit_VarLike "var=">
<VSub_DollarName "$v">
<Lit_CompDummy "">
<Eof_Real "">

  alias_words:

line: 'local var=$v'
rl_slice from byte 0 to 12: 'local var=$v'
.EE
======================================================================
ERROR: testShellFuncExecution (__main__.CompletionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/uke/oil/core/completion_test.py", line 208, in testShellFuncExecution
    cmd_ev = test_lib.InitCommandEvaluator(arena=arena)
  File "/home/uke/oil/core/test_lib.py", line 228, in InitCommandEvaluator
    new_var = assign_osh.NewVar(mem, procs, exec_opts, errfmt)
TypeError: __init__() takes exactly 6 arguments (5 given)

======================================================================
ERROR: testMatchesOracle (__main__.InitCompletionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/uke/oil/core/completion_test.py", line 783, in testMatchesOracle
    mem=mem)
  File "/home/uke/oil/core/test_lib.py", line 339, in EvalCode
    aliases=aliases)
  File "/home/uke/oil/core/test_lib.py", line 228, in InitCommandEvaluator
    new_var = assign_osh.NewVar(mem, procs, exec_opts, errfmt)
TypeError: __init__() takes exactly 6 arguments (5 given)

======================================================================
ERROR: testCompletesAliases (__main__.RootCompleterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/uke/oil/core/completion_test.py", line 518, in testCompletesAliases
    aliases=aliases)
  File "/home/uke/oil/core/test_lib.py", line 339, in EvalCode
    aliases=aliases)
  File "/home/uke/oil/core/test_lib.py", line 228, in InitCommandEvaluator
    new_var = assign_osh.NewVar(mem, procs, exec_opts, errfmt)
TypeError: __init__() takes exactly 6 arguments (5 given)

======================================================================
ERROR: testNoInfiniteLoop (__main__.RootCompleterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/uke/oil/core/completion_test.py", line 554, in testNoInfiniteLoop
    comp_lookup=comp_lookup)
  File "/home/uke/oil/core/test_lib.py", line 339, in EvalCode
    aliases=aliases)
  File "/home/uke/oil/core/test_lib.py", line 228, in InitCommandEvaluator
    new_var = assign_osh.NewVar(mem, procs, exec_opts, errfmt)
TypeError: __init__() takes exactly 6 arguments (5 given)

======================================================================
ERROR: testRunsUserDefinedFunctions (__main__.RootCompleterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/uke/oil/core/completion_test.py", line 448, in testRunsUserDefinedFunctions
    comp_lookup=comp_lookup)
  File "/home/uke/oil/core/test_lib.py", line 339, in EvalCode
    aliases=aliases)
  File "/home/uke/oil/core/test_lib.py", line 228, in InitCommandEvaluator
    new_var = assign_osh.NewVar(mem, procs, exec_opts, errfmt)
TypeError: __init__() takes exactly 6 arguments (5 given)

----------------------------------------------------------------------
Ran 16 tests in 0.049s

FAILED (errors=5)

FAIL: core/completion_test.py with code 1