Results for var-op-test.test.sh

casedashbashmkshoshdescription
0N-I pass pass FAIL Lazy Evaluation of Alternative
detailsdetails
1pass pass pass pass Default value when empty
2pass pass pass pass Default value when unset
3pass pass pass FAIL Assign default value when empty
details
4pass pass pass FAIL Assign default value when unset
details
5pass pass pass pass Alternative value when empty
6pass pass pass pass Alternative value when unset
7ok pass pass FAIL Error when empty
detailsdetails
8ok pass pass FAIL Error when unset
detailsdetails
9pass pass pass pass Error when unset

32 passed, 2 ok, 1 known unimplemented, 0 known bugs, 5 failed, 0 skipped

Details on runs that didn't PASS

dash0 Lazy Evaluation of Alternative

stdout:
x
0
stderr:
/bin/dash: 5: arithmetic expression: expecting primary: "i++"
osh0 Lazy Evaluation of Alternative

[osh stdout] Expected b'x\n0\n0\n1\n', got b'x\n0\n'
[osh status] Expected 0, got 1

stdout:
x
0
stderr:
Traceback (most recent call last):
  File "bin/osh", line 388, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 378, in main
    return OshMain(main_argv)
  File "bin/osh", line 337, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 1111, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 974, in _Execute
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 869, in _Execute
    argv = self.ev.EvalWordSequence(words)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 1056, in EvalWordSequence
    return self._EvalWordSequence(words)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 1039, in _EvalWordSequence
    args = self._EvalWordAndReframe(w)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 992, in _EvalWordAndReframe
    part_vals = self._EvalParts(word)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 885, in _EvalParts
    for v in self.part_ev._EvalWordPart(p, quoted=quoted):
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 829, in _EvalWordPart
    return self._EvalBracedVarSub(part, quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 736, in _EvalBracedVarSub
    quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 383, in _ApplyTestOp
    part_vals = self.word_ev._EvalParts(op.arg_word, quoted=quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 885, in _EvalParts
    for v in self.part_ev._EvalWordPart(p, quoted=quoted):
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 839, in _EvalWordPart
    if arith_ev.Eval(part.anode):
  File "/home/andy/git/oil2/bin/../core/expr_eval.py", line 64, in Eval
    result = self._Eval(node)
  File "/home/andy/git/oil2/bin/../core/expr_eval.py", line 238, in _Eval
    raise AssertionError("Shouldn't get here")
AssertionError: Shouldn't get here
osh3 Assign default value when empty

[osh stdout] Expected b'is empty\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 388, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 378, in main
    return OshMain(main_argv)
  File "bin/osh", line 337, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 1111, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 974, in _Execute
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 869, in _Execute
    argv = self.ev.EvalWordSequence(words)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 1056, in EvalWordSequence
    return self._EvalWordSequence(words)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 1039, in _EvalWordSequence
    args = self._EvalWordAndReframe(w)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 992, in _EvalWordAndReframe
    part_vals = self._EvalParts(word)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 885, in _EvalParts
    for v in self.part_ev._EvalWordPart(p, quoted=quoted):
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 829, in _EvalWordPart
    return self._EvalBracedVarSub(part, quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 736, in _EvalBracedVarSub
    quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 399, in _ApplyTestOp
    raise NotImplementedError
NotImplementedError
osh4 Assign default value when unset

[osh stdout] Expected b'is unset\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 388, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 378, in main
    return OshMain(main_argv)
  File "bin/osh", line 337, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 1111, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 974, in _Execute
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 869, in _Execute
    argv = self.ev.EvalWordSequence(words)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 1056, in EvalWordSequence
    return self._EvalWordSequence(words)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 1039, in _EvalWordSequence
    args = self._EvalWordAndReframe(w)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 992, in _EvalWordAndReframe
    part_vals = self._EvalParts(word)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 885, in _EvalParts
    for v in self.part_ev._EvalWordPart(p, quoted=quoted):
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 829, in _EvalWordPart
    return self._EvalBracedVarSub(part, quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 736, in _EvalBracedVarSub
    quoted)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 399, in _ApplyTestOp
    raise NotImplementedError
NotImplementedError
dash7 Error when empty

stdout:
stderr: 
/bin/dash: 2: empty: is empty
osh7 Error when empty

[osh status] Expected 1, got 33

stdout:
stderr: 
dash8 Error when unset

stdout:
stderr: 
/bin/dash: 1: unset: is empty
osh8 Error when unset

[osh status] Expected 1, got 33

stdout:
stderr: