Results for ysh-purity.test.sh

statusosh
FAIL 18
total18
caseoshdescription
0FAIL eval() is a pure function
details
1FAIL evalExpr() is a pure function
details
2FAIL Idiom to handle purity errors from untrusted config files
details
3FAIL Executor: can run user-defined Procs
details
4FAIL Executor: can run Hay (while Hay is hard-coded)
details
5FAIL Executor: External Commands not allowed
details
6FAIL Command subs, pipelines not allowed with --eval-pure
details
7FAIL Process subs, subshells not allowed with eval()
details
8FAIL Background job &
details
9FAIL Redirects
details
10FAIL Are any builtins allowed? true, false
details
11FAIL Are source or use builtins allowed?
details
12FAIL Can log to stderr in pure mode
details
13FAIL io and vm are not allowed
details
14FAIL Can't make an alias of io->eval and call it, etc.
details
15FAIL Globbing not allowed
details
16FAIL $RANDOM $SECONDS
details
17FAIL Purely-evaluated code can't set traps for later
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 18 failed, 0 timeouts, 0 cases skipped
18 failed under osh

Details on runs that didn't PASS

osh0 eval() is a pure function

[osh stdout] Expected '(Dict) {"a":1,"b":2}\nimpure code=5\n3\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh1 evalExpr() is a pure function

[osh stdout] Expected 'pure=43\nimpure code=5\nimpure=45\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh2 Idiom to handle purity errors from untrusted config files

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh3 Executor: can run user-defined Procs

[osh stdout] Expected '(List) ["p-outside","p-inside"]\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh4 Executor: can run Hay (while Hay is hard-coded)

[osh stdout] Expected '{\n "version": "1.1"\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh5 Executor: External Commands not allowed

[osh stdout] Expected '1\n2\n3\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh6 Command subs, pipelines not allowed with --eval-pure

[osh stdout] Expected 'command sub\ncommand-sub.sh=5\ncommand-sub.ysh=5\n\n3\neval\npipeline.sh=5\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh7 Process subs, subshells not allowed with eval()

[osh stdout] Expected "1\n2\ncode=5 message=Process subs aren't allowed in pure mode (OILS-ERR-204)\n\nsubshell\ncode=5 message=Subshells aren't allowed in pure mode (OILS-ERR-204)\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh8 Background job &

[osh stdout] Expected "code=5 message=Background jobs aren't allowed in pure mode (OILS-ERR-204)\n3\ncode=5 message=Pipelines aren't allowed in pure mode (OILS-ERR-204)\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh9 Redirects

[osh stdout] Expected 'TODO\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh10 Are any builtins allowed? true, false

[osh stdout] Expected 'true\nbuiltin true\ncommand true\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 16, in <module>
    from core import value
ImportError: cannot import name value
osh11 Are source or use builtins allowed?

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh12 Can log to stderr in pure mode

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh13 io and vm are not allowed

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh14 Can't make an alias of io->eval and call it, etc.

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh15 Globbing not allowed

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh16 $RANDOM $SECONDS

[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 16, in <module>
    from core import value
ImportError: cannot import name value
osh17 Purely-evaluated code can't set traps for later

[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 16, in <module>
    from core import value
ImportError: cannot import name value