Results for introspect.test.sh

casebashoshosh_ALTosh-byterundescription
0pass pass pass FAIL ${FUNCNAME[@]} array
details
1pass pass pass FAIL FUNCNAME with source
details
2pass pass pass FAIL ${BASH_SOURCE[@]} with source and function name
details
3pass pass pass FAIL ${BASH_SOURCE[@]} with line numbers
details
4pass pass pass FAIL ${BASH_LINENO[@]} is a stack of line numbers for function calls
details
5pass pass pass FAIL $LINENO is the current line, not line of function call
details

18 passed, 0 ok, 0 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

osh-byterun0 ${FUNCNAME[@]} array

[osh-byterun stdout] Expected "['f']\n['g', 'f']\n['f']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun1 FUNCNAME with source

[osh-byterun stdout] Expected "['source', 'f', 'g']\n['source']\n[]\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun2 ${BASH_SOURCE[@]} with source and function name

[osh-byterun stdout] Expected "[]\n['spec/testdata/bash-source-simple.sh']\n['spec/testdata/bash-source-simple.sh']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun3 ${BASH_SOURCE[@]} with line numbers

[osh-byterun stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun4 ${BASH_LINENO[@]} is a stack of line numbers for function calls

[osh-byterun stdout] Expected "[]\n['begin F', '10']\n['G', '6', '10']\n['end F', '10']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun5 $LINENO is the current line, not line of function call

[osh-byterun stdout] Expected "1\n['6']\n['3']\n['8']\n", got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend