Results for oil-with-sh.test.sh

statusoiloil_ALT
FAIL 66
total66
caseoiloil_ALTdescription
0FAIL FAIL Shell Append += with Oil Values (issue #840)
detailsdetails
1FAIL FAIL Shell ${x:-default} with Oil values (issue #954)
detailsdetails
2FAIL FAIL Shell ${a[0]} with Oil values (issue #1092)
detailsdetails
3FAIL FAIL Splice nested List
detailsdetails
4FAIL FAIL Splice nested Dict
detailsdetails
5FAIL FAIL Concatenate shell arrays and ${#a}
detailsdetails
0 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

oil0 Shell Append += with Oil Values (issue #840)

[oil stdout] Expected '', got 'g=2\n'
[oil status] Expected 0, got 2

stdout:
g=2
stderr:
  g+=1
  ^~~
[ stdin ]:5: Use const or var/setvar to assign in Oil (parse_sh_assign)
oil_ALT0 Shell Append += with Oil Values (issue #840)

[oil_ALT stdout] Expected '', got 'g=2\n'
[oil_ALT status] Expected 0, got 2

stdout:
g=2
stderr:
  g+=1
  ^~~
[ stdin ]:5: Use const or var/setvar to assign in Oil (parse_sh_assign)
oil1 Shell ${x:-default} with Oil values (issue #954)

[oil status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(10,)
oil_ALT1 Shell ${x:-default} with Oil values (issue #954)

[oil_ALT status] Expected 0, got 1

stdout:
stderr: 
FATAL: NotImplementedError(10,)
oil2 Shell ${a[0]} with Oil values (issue #1092)

[oil status] Expected 0, got 1
[oil stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 366, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 309, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 286, in AppBundleMain
    loader, line_input)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 675, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1649, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1487, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 686, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2114, in EvalWordSequence2
    return self.SimpleEvalWordSequence2(words, allow_assign)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2074, in SimpleEvalWordSequence2
    self._EvalWordToParts(w, part_vals, 0)  # not quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1661, in _EvalWordToParts
    self._EvalWordPart(p, word_part_vals, eval_flags)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1561, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1246, in _EvalBracedVarSub
    val = self._EvalBracketOp(val, part, quoted, vsub_state, vtest_place)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1115, in _EvalBracketOp
    val = self._ArrayIndex(val, part, vtest_place)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1035, in _ArrayIndex
    raise AssertionError(val.tag_())
AssertionError: 10
oil_ALT2 Shell ${a[0]} with Oil values (issue #1092)

[oil_ALT status] Expected 0, got 1
[oil_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 336, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 309, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 300, in AppBundleMain
    return readlink.main(main_argv)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 675, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 338, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1657, in ExecuteAndCatch
    status = e.StatusCode()
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1487, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 743, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2114, in EvalWordSequence2
    return self.SimpleEvalWordSequence2(words, allow_assign)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2074, in SimpleEvalWordSequence2
    self._EvalWordToParts(w, part_vals, 0)  # not quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1698, in _EvalWordToParts
    part_vals.append(part_value.String('', quoted, not quoted))
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1561, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1246, in _EvalBracedVarSub
    val = self._EvalBracketOp(val, part, quoted, vsub_state, vtest_place)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1127, in _EvalBracketOp
    val = DecayArray(val)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1035, in _ArrayIndex
    raise AssertionError(val.tag_())
AssertionError: 10
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.12.6/_bin/oil' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
oil3 Splice nested List

[oil status] Expected 0, got 3

stdout:
stderr: 
  @mylist
  ^~~~~~~
[ stdin ]:3: fatal: Expected string-like value (Bool, Int, Str), but got <class 'pylib.collections_.OrderedDict'>
oil_ALT3 Splice nested List

[oil_ALT status] Expected 0, got 3

stdout:
stderr: 
  @mylist
  ^~~~~~~
[ stdin ]:3: fatal: Expected string-like value (Bool, Int, Str), but got <class 'pylib.collections_.OrderedDict'>
oil4 Splice nested Dict

[oil status] Expected 0, got 1
[oil stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 366, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 309, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 286, in AppBundleMain
    loader, line_input)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 675, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1649, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1487, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 686, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2114, in EvalWordSequence2
    return self.SimpleEvalWordSequence2(words, allow_assign)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2096, in SimpleEvalWordSequence2
    strs.append(''.join(tmp))  # no split or glob
TypeError: sequence item 0: expected string, list found
oil_ALT4 Splice nested Dict

[oil_ALT status] Expected 0, got 1
[oil_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 336, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 309, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 300, in AppBundleMain
    return readlink.main(main_argv)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 675, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 338, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1657, in ExecuteAndCatch
    status = e.StatusCode()
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1487, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 743, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2114, in EvalWordSequence2
    return self.SimpleEvalWordSequence2(words, allow_assign)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2096, in SimpleEvalWordSequence2
    strs.append(''.join(tmp))  # no split or glob
TypeError: sequence item 0: expected string, list found
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.12.6/_bin/oil' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
oil5 Concatenate shell arrays and ${#a}

[oil stdout] Expected '', got "len a 1\nlen b 1\na = (cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a]))\nc = (cell exported:F readonly:F nameref:F val:(value.Obj obj:['a', 'b']))\n"
[oil status] Expected 0, got 1
[oil stderr] Found 'Traceback (most recent'

stdout:
len a 1
len b 1
a = (cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a]))
c = (cell exported:F readonly:F nameref:F val:(value.Obj obj:['a', 'b']))
stderr:
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 366, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 309, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 286, in AppBundleMain
    loader, line_input)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 675, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1649, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1487, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 686, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2114, in EvalWordSequence2
    return self.SimpleEvalWordSequence2(words, allow_assign)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2074, in SimpleEvalWordSequence2
    self._EvalWordToParts(w, part_vals, 0)  # not quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1661, in _EvalWordToParts
    self._EvalWordPart(p, word_part_vals, eval_flags)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1561, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1261, in _EvalBracedVarSub
    val = self._Length(val, part.token)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 711, in _Length
    raise AssertionError()
AssertionError
oil_ALT5 Concatenate shell arrays and ${#a}

[oil_ALT stdout] Expected '', got "len a 1\nlen b 1\na = (cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a]))\nc = (cell exported:F readonly:F nameref:F val:(value.Obj obj:['a', 'b']))\n"
[oil_ALT status] Expected 0, got 1
[oil_ALT stderr] Found 'Traceback (most recent'

stdout:
len a 1
len b 1
a = (cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a]))
c = (cell exported:F readonly:F nameref:F val:(value.Obj obj:['a', 'b']))
stderr:
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 336, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 309, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 300, in AppBundleMain
    return readlink.main(main_argv)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 675, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 338, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1657, in ExecuteAndCatch
    status = e.StatusCode()
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1487, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 743, in _Dispatch
    status = self._Execute(node.child)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2114, in EvalWordSequence2
    return self.SimpleEvalWordSequence2(words, allow_assign)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2074, in SimpleEvalWordSequence2
    self._EvalWordToParts(w, part_vals, 0)  # not quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1698, in _EvalWordToParts
    part_vals.append(part_value.String('', quoted, not quoted))
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1561, in _EvalWordPart
    self._EvalBracedVarSub(part, part_vals, quoted)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1296, in _EvalBracedVarSub
    val = self._EmptyStrOrError(val, part.token)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 711, in _Length
    raise AssertionError()
AssertionError
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.12.6/_bin/oil' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47