Results for hay.test.sh

statusosh
FAIL 29
total29
caseoshdescription
0FAIL hay builtin usage
details
1FAIL hay reset
details
2FAIL hay eval can't be nested
details
3FAIL hay names at top level
details
4FAIL Parsing Nested Attributes nodes (bug fix)
details
5FAIL hay eval Attr node, and JSON
details
6FAIL hay eval shell node, and JSON
details
7FAIL _hay() register
details
8FAIL haynode builtin can define nodes
details
9FAIL haynode: usage errors (name or block required)
details
10FAIL haynode: shell nodes require block args; attribute nodes don't
details
11FAIL hay eval with shopt -s ysh:all
details
12FAIL Attr block with duplicate names
details
13FAIL Scope of Variables Inside Hay Blocks
details
14FAIL Nested bare assignment
details
15FAIL Param with same name as Hay attribute
details
16FAIL hay define and then an error
details
17FAIL parseHay()
details
18FAIL Code Blocks: parseHay() then shvar _DIALECT= { evalHay() }
details
19FAIL evalHay() usage
details
20FAIL Attribute / Data Blocks (package-manager)
details
21FAIL Typed Args to Hay Node
details
22FAIL OSH and hay (dynamic parsing)
details
23FAIL CODE node provides code_str, serialized code - issue #2050
details
24FAIL Proc within Hay node
details
25FAIL Using Hay node from another module
details
26FAIL Defining Hay node in another module
details
27FAIL Using Hay with --eval flags
details
28FAIL hay crash when source file has a syntax error
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 29 failed, 0 timeouts, 0 cases skipped
29 failed under osh

Details on runs that didn't PASS

osh0 hay builtin usage

[osh stdout] Expected 'status=2\nstatus=0\nread 0\ngreater 0\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh1 hay reset

[osh stdout] Expected 'package 0\nreset 0\n' Got ''
[osh status] Expected 127 Got 1
[osh 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
osh2 hay eval can't be nested

[osh stdout] Expected 'foo\n' Got ''
[osh status] Expected 127 Got 1
[osh 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
osh3 hay names at top level

[osh stdout] Expected 'status=0\n1 one\nstatus=0\n1 two\nstatus=0\n1 three\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh4 Parsing Nested Attributes nodes (bug fix)

[osh status] Expected 2 Got 1
[osh 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
osh5 hay eval Attr node, and JSON

[osh stdout] Expected 'diff 0\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh6 hay eval shell node, and JSON

[osh status] Expected 0 Got 1
[osh 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
osh7 _hay() register

[osh stdout] Expected '1\n2\n0\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh8 haynode builtin can define nodes

[osh stdout] Expected 'level 0 children\n1\nlevel 1 children\n2\nlevel 0 children\n2\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh9 haynode: usage errors (name or block required)

[osh stdout] Expected 'haynode attr 2\nLEN 0\nhaynode code 2\nLEN 0\n---\ndefine attr 2\nLEN 0\ndefine code 2\nLEN 0\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh10 haynode: shell nodes require block args; attribute nodes don't

[osh stdout] Expected 'status 0\nstatus 2\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh11 hay eval with shopt -s ysh:all

[osh stdout] Expected 'foo bar\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh12 Attr block with duplicate names

[osh 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
osh13 Scope of Variables Inside Hay Blocks

[osh stdout] Expected 'location = https://example.com/downloads/foo.tar.gz\nbackup = https://archive.example.com/downloads/foo.tar.gz\ndeps location https://example.com/downloads/spam.tar.gz\ndeps backup https://archive.example.com/downloads/spam.tar.xz\nAFTER downloads/foo.tar.gz\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh14 Nested bare assignment

[osh stdout] Expected '{\n "source": null,\n "children": [\n {\n "type": "Package",\n "args": [],\n "children": [\n {\n "type": "Deps",\n "args": [],\n "children": [],\n "attrs": {\n "x": 20\n }\n }\n ],\n "attrs": {\n "x": 10\n }\n }\n ]\n}\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh15 Param with same name as Hay attribute

[osh stdout] Expected '{\n "variant": null,\n "port": 80\n}\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh16 hay define and then an error

[osh stdout] Expected 'user 0\npackage 0\nTASK 0\ninside\nlicense 0\nlicense 0\n' Got ''
[osh status] Expected 127 Got 1
[osh 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
osh17 parseHay()

[osh stdout] Expected 'OK\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh18 Code Blocks: parseHay() then shvar _DIALECT= { evalHay() }

[osh stdout] Expected 'level 0 children\n2\n---\nchild 0\nTASK\ncpp\n---\nchild 1\nTASK\npublish-html\n---\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh19 evalHay() usage

[osh stdout] Expected 'status 3\nstatus 3\nstatus 3\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh20 Attribute / Data Blocks (package-manager)

[osh stdout] Expected 'level 0 children\n3\nlevel 1 children\n0\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh21 Typed Args to Hay Node

[osh status] Expected 0 Got 1
[osh 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
osh22 OSH and hay (dynamic parsing)

[osh stdout] Expected "backticks\neval\nTYPE TASK\nCODE \n echo `echo task backticks`\n eval 'echo task eval'\n ___\n" Got ''
[osh status] Expected 0 Got 1
[osh 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
osh23 CODE node provides code_str, serialized code - issue #2050

[osh status] Expected 0 Got 1
[osh 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
osh24 Proc within Hay node

[osh status] Expected 0 Got 1
[osh 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
osh25 Using Hay node from another module

[osh stdout] Expected '{\n "version": "3.3"\n}\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh26 Defining Hay node in another module

[osh stdout] Expected '{\n "version": "3.3"\n}\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh27 Using Hay with --eval flags

[osh stdout] Expected '{\n "type": "Package",\n "args": [\n "cpython"\n ],\n "children": [],\n "attrs": {\n "version": "3.12",\n "url": "https://python.org/release/3.12/",\n "build": null\n }\n}\nversion = 3.12, url = https://python.org/release/3.12/\n' Got ''
[osh status] Expected 0 Got 1
[osh 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
osh28 hay crash when source file has a syntax error

[osh stdout] Expected 'OK\n' Got ''
[osh status] Expected 0 Got 1
[osh 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