Results for ysh-list.test.sh

statusysh
FAIL 17
total17
caseyshdescription
0FAIL shell array :| a 'b c' |
details
1FAIL empty array and simple_word_eval (regression test)
details
2FAIL Shell arrays support tilde detection, static globbing, brace detection
details
3FAIL Basic List, a[42] a['42'] allowed
details
4FAIL Mutate List entries, a[42] a['42'] allowed
details
5FAIL string array with command sub, varsub, etc.
details
6FAIL Can print type of List with pp
details
7FAIL splice and stringify array
details
8FAIL List->extend()
details
9FAIL List append()/extend() should return null
details
10FAIL List pop()
details
11FAIL List remove() removes elements
details
12FAIL List remove() does nothing if element does not exist
details
13FAIL List insert()
details
14FAIL List insert() overflow
details
15FAIL List insert() negative
details
16FAIL List insert() negative overflow
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 17 failed, 0 timeouts, 0 cases skipped
17 failed under osh

Details on runs that didn't PASS

ysh0 shell array :| a 'b c' |

[ysh stdout] Expected "['/', 'a', 'b 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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh1 empty array and simple_word_eval (regression test)

[ysh stdout] Expected "len=0\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 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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh2 Shell arrays support tilde detection, static globbing, brace detection

[ysh stdout] Expected "['/home/bob/src', 'bar.py', 'foo.py', 'andy@example.com', 'bob@example.com', '*.py']\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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh3 Basic List, a[42] a['42'] allowed

[ysh stdout] Expected 'len=3\n(Str) "2"\n(Str) "3"\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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh4 Mutate List entries, a[42] a['42'] allowed

[ysh stdout] Expected '(List) ["2",1,"4"]\n(List) ["2",1,9]\n(List) ["2",1,99]\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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh5 string array with command sub, varsub, etc.

[ysh stdout] Expected 'len=4\n1\nhi\nsq\ndq 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 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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh6 Can print type of List with pp

[ysh stdout] Expected '(List) ["true"]\n(List) []\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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh7 splice and stringify array

[ysh stdout] Expected "['a b', 'c']\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 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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh8 List->extend()

[ysh stdout] Expected '2\n5\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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh9 List append()/extend() should return null

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh10 List pop()

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh11 List remove() removes elements

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh12 List remove() does nothing if element does not exist

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh13 List insert()

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh14 List insert() overflow

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh15 List insert() negative

[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 oil_lang import path_stat
ImportError: No module named oil_lang
ysh16 List insert() negative overflow

[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 oil_lang import path_stat
ImportError: No module named oil_lang