Results for ysh-for.test.sh

statusysh
FAIL 20
total20
caseyshdescription
0FAIL For loop over expression: List
details
1FAIL For loop over expression: Dict, not BashAssoc
details
2FAIL For loop over range
details
3FAIL Shell for loop with index (equivalent of enumerate())
details
4FAIL 3 indices with (mylist) is a runtime error
details
5FAIL Shell for loop can't have 3 indices
details
6FAIL Any for loop can't have 4 indices
details
7FAIL Expression for loop with index: List
details
8FAIL Expression for loop with index: Dict (TODO: define dict iter order)
details
9FAIL Dict: index key value loop (TODO: define dict iter order)
details
10FAIL Equivalent of zip()
details
11FAIL no_parse_bare_word eliminates confusion
details
12FAIL Object that's not iterable
details
13FAIL YSH for with brace substitution and glob
details
14FAIL for x in (io.stdin) {
details
15FAIL I/O error in for x in (stdin) {
details
16FAIL Append to List in loop extends the loop (matches JS)
details
17FAIL Remove from List in loop shortens it (matches JS)
details
18FAIL Adding to Dict in loop does NOT extend the loop (matches JS)
details
19FAIL Removing from Dict in loop does NOT change the loop (does NOT match JS)
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 20 failed, 0 timeouts, 0 cases skipped
20 failed under osh

Details on runs that didn't PASS

ysh0 For loop over expression: List

[ysh stdout] Expected 'item 1\nitem 2\nitem 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh1 For loop over expression: Dict, not BashAssoc

[ysh stdout] Expected 'key name\nkey age\n' Got ''
[ysh status] Expected 3 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh2 For loop over range

[ysh stdout] Expected 'i 0\ni 1\ni 2\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh3 Shell for loop with index (equivalent of enumerate())

[ysh stdout] Expected '0 a\n1 b\n2 c\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh4 3 indices with (mylist) is a runtime error

[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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh5 Shell for loop can't have 3 indices

[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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh6 Any for loop can't have 4 indices

[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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh7 Expression for loop with index: List

[ysh stdout] Expected '0 spam\n1 eggs\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh8 Expression for loop with index: Dict (TODO: define dict iter order)

[ysh stdout] Expected 'pair name bob\npair age 40\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh9 Dict: index key value loop (TODO: define dict iter order)

[ysh stdout] Expected 'entry 0 name bob\nentry 1 age 40\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh10 Equivalent of zip()

[ysh stdout] Expected '0 a d\n1 b e\n2 c f\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh11 no_parse_bare_word eliminates confusion

[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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh12 Object that's not iterable

[ysh stdout] Expected 'hi\n' Got ''
[ysh status] Expected 3 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh13 YSH for with brace substitution and glob

[ysh stdout] Expected '0 bar.py\n1 foo.py\n2 README.md\n3 foo.md\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh14 for x in (io.stdin) {

[ysh stdout] Expected '-1-\n-2-\n-3-\n\n0 1\n1 2\n2 3\n\nempty\ndone\n\nempty2\ndone2\n\nspace\nhi\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh15 I/O error in for x in (stdin) {

[ysh stdout] Expected 'pass\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh16 Append to List in loop extends the loop (matches JS)

[ysh stdout] Expected '1\n2\n3\n99\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh17 Remove from List in loop shortens it (matches JS)

[ysh stdout] Expected '1\n2\n3\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh18 Adding to Dict in loop does NOT extend the loop (matches JS)

[ysh stdout] Expected '1\n2\n3\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib
ysh19 Removing from Dict in loop does NOT change the loop (does NOT match JS)

[ysh stdout] Expected '1\n2\n3\n4\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 15, in <module>
    from pylib import path_lib
ImportError: cannot import name path_lib