Results for ysh-builtin-trap.test.sh

statusysh
FAIL 5
total5
caseyshdescription
0FAIL trap --remove INT EXIT
details
1FAIL trap block arg is a not a closure - like cd and other builtins
details
2FAIL trap --ignore INT USR1
details
3FAIL trap --ignore removes hooks (like trap -)
details
4FAIL trap --ignore with uncatchable STOP signal
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

ysh0 trap --remove INT EXIT

[ysh stdout] Expected '3 traps.txt\n---\n1 traps.txt\n---\nexit\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 trap block arg is a not a closure - like cd and other builtins

[ysh stdout] Expected 'x = global\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 trap --ignore INT USR1

[ysh stdout] Expected "trap -- '' SIGINT\ntrap -- '' SIGUSR1\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 trap --ignore removes hooks (like trap -)

[ysh stdout] Expected 'done\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
ysh4 trap --ignore with uncatchable STOP signal

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