Results for ysh-assign.test.sh

statusysh
FAIL 22
total22
caseyshdescription
0FAIL proc static check: const can't be mutated
details
1FAIL top-level dynamic check: const can't be be mutated
details
2FAIL top level: var can be redefined by var/const
details
3FAIL setvar mutates local
details
4FAIL top level: setvar creates global
details
5FAIL top level: setvar mutates var
details
6FAIL proc static check: variable changed by setvar must be declared
details
7FAIL setglobal
details
8FAIL setglobal of undeclared var is allowed
details
9FAIL var a, b does implicit null init
details
10FAIL var x, y = f()
details
11FAIL const x, y = f()
details
12FAIL setvar x, y = 1, 2
details
13FAIL setvar to swap List and Dict elements
details
14FAIL setvar d.key = 42
details
15FAIL setvar mylist[1] = 42
details
16FAIL setvar mylist[99] out of range
details
17FAIL mixing assignment builtins and YSH assignment
details
18FAIL circular dict - TODO 2023-06 REGRESS
details
19FAIL circular list - TODO 2023-06 REGRESS
details
20FAIL exit code of var, const, setvar with command sub
details
21FAIL setvar obj[INVALID TYPE] =
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 22 failed, 0 timeouts, 0 cases skipped
22 failed under osh

Details on runs that didn't PASS

ysh0 proc static check: const can't be mutated

[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh1 top-level dynamic check: const can't be be mutated

[ysh stdout] Expected 'x=foo\n', got ''
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh2 top level: var can be redefined by var/const

[ysh stdout] Expected 'x=global\nx=local\nx=g2\nx=now-const\n', got ''
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh3 setvar mutates local

[ysh stdout] Expected 'x=global\nx=local\nx=mutated\nx=global\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh4 top level: setvar creates global

[ysh stdout] Expected 'x=global\nx=g2\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh5 top level: setvar mutates var

[ysh stdout] Expected '42\n50\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh6 proc static check: variable changed by setvar must be declared

[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh7 setglobal

[ysh stdout] Expected 'x=global\nx=local\nx=mutated\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh8 setglobal of undeclared var is allowed

[ysh stdout] Expected 'x=XX\nx=xx\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh9 var a, b does implicit null init

[ysh stdout] Expected 'null null null null null\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh10 var x, y = f()

[ysh stdout] Expected 'x=1 y=2\na=3 b=4\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh11 const x, y = f()

[ysh stdout] Expected 'a=3 b=4\n', got ''
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh12 setvar x, y = 1, 2

[ysh stdout] Expected 'x=3 y=4\nx=1 y=9\nx=9 y=1\nx=18 y=27\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh13 setvar to swap List and Dict elements

[ysh stdout] Expected '1 2 3\n2 1 3\n42 1 3\n{\n "int": 2\n}\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh14 setvar d.key = 42

[ysh stdout] Expected 'f3=43\nf2=42\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh15 setvar mylist[1] = 42

[ysh stdout] Expected '1 42 3\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh16 setvar mylist[99] out of range

[ysh stdout] Expected '3\n3\n4 5 6\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh17 mixing assignment builtins and YSH assignment

[ysh stdout] Expected 'x=2\nstatus=0\nstatus=1\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh18 circular dict - TODO 2023-06 REGRESS

[ysh stdout] Expected "(OrderedDict) <'name': 'foo'>\n(OrderedDict) <'name': 123>\n(OrderedDict) <'name': 'mystr'>\n(OrderedDict) <'name': ...>\n" Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh19 circular list - TODO 2023-06 REGRESS

[ysh stdout] Expected '(List) [1, 2, 3]\n(List) [[...], 2, 3]\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh20 exit code of var, const, setvar with command sub

[ysh stdout] Expected 'outside1=1\noutside2=1\noutside3=1\noutside4=1\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh21 setvar obj[INVALID TYPE] =

[ysh stdout] Expected 'd.key = 5\noutside1=3\nL[0] = 43\noutside2=3\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_