Results for hay-isolation.test.sh

statusoshosh_ALT
pass 55
FAIL 11
total66
caseoshosh_ALTdescription
0pass pass Turn off external binaries with shvar PATH='' {}
1pass pass More shvar PATH=''
2pass pass builtins and externals not available in hay eval
3pass pass procs in hay eval
4pass pass variables mutated within hay eval don't persist
5FAIL FAIL hay at top level allows arbitrary commands
detailsdetails
10 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh5 hay at top level allows arbitrary commands

[osh stdout] Expected '3\n4\ninside\n', got '3\n4\n--- -\t2024-06-29 16:05:26.208907898 +0000\n+++ actual.txt\t2024-06-29 16:05:26.199900676 +0000\n@@ -1,4 +0,0 @@\n-[\n- "1",\n- "2"\n-]\ninside\n'

stdout:
3
4
--- -	2024-06-29 16:05:26.208907898 +0000
+++ actual.txt	2024-06-29 16:05:26.199900676 +0000
@@ -1,4 +0,0 @@
-[
-  "1",
-  "2"
-]
inside
stderr:
  json write (_hay()) | jq '.children[0].args' > actual.txt
                        ^~
[ stdin ]:9: 'jq' not found (OILS-ERR-100)
    Package $(seq 2) {
              ^~~
[ stdin ]:20: Unknown command 'seq' while running hay
[ stdin ]:20: errexit PID 31112: command.Simple failed with status 127
osh_ALT5 hay at top level allows arbitrary commands

[osh_ALT stdout] Expected '3\n4\ninside\n', got '3\n4\n--- -\t2024-06-29 16:05:26.264714530 +0000\n+++ actual.txt\t2024-06-29 16:05:26.255900222 +0000\n@@ -1,4 +0,0 @@\n-[\n- "1",\n- "2"\n-]\ninside\n'

stdout:
3
4
--- -	2024-06-29 16:05:26.264714530 +0000
+++ actual.txt	2024-06-29 16:05:26.255900222 +0000
@@ -1,4 +0,0 @@
-[
-  "1",
-  "2"
-]
inside
stderr:
  json write (_hay()) | jq '.children[0].args' > actual.txt
                        ^~
[ stdin ]:9: 'jq' not found (OILS-ERR-100)
    Package $(seq 2) {
              ^~~
[ stdin ]:20: Unknown command 'seq' while running hay
[ stdin ]:20: errexit PID 31118: command.Simple failed with status 127