Results for builtin-dirs.test.sh

statusoshosh_.pyosh_.cc
pass 1440
FAIL 01014
total141414
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL pushd/popd
details
1pass FAIL FAIL popd usage error
detailsdetails
2pass FAIL FAIL popd returns error on empty directory stack
detailsdetails
3pass pass FAIL dirs builtin
details
4pass FAIL FAIL dirs -c to clear the stack
detailsdetails
5pass FAIL FAIL dirs -v to print numbered stack, one entry per line
detailsdetails
6pass FAIL FAIL dirs -p to print one entry per line
detailsdetails
7pass FAIL FAIL dirs -l to print in long format, no tilde prefix
detailsdetails
8pass FAIL FAIL dirs to print using tilde-prefix format
detailsdetails
9pass FAIL FAIL dirs test converting true home directory to tilde
detailsdetails
10pass pass FAIL dirs don't convert to tilde when $HOME is substring
details
11pass pass FAIL dirs tilde test when $HOME is exactly $PWD
details
12pass FAIL FAIL dirs test of path alias `..`
detailsdetails
13pass FAIL FAIL dirs test of path alias `.`
detailsdetails
18 passed, 0 OK, 0 not implemented, 0 BUG, 24 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc0 pushd/popd

[osh_.cc stdout] Expected '/tmp /\npwd=/tmp\n/\npwd=/\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py1 popd usage error

[osh_.py stdout] Expected 'status=2\n', got '/ /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-dirs.test.sh\nstatus=2\n'

stdout:
/ /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-dirs.test.sh
status=2
stderr:
osh_.cc1 popd usage error

[osh_.cc stdout] Expected 'status=2\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:14: Str *os_path::abspath(Str *): Assertion `0' failed.
osh_.py2 popd returns error on empty directory stack

[osh_.py stdout] Expected '1\ndirectory stack\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc2 popd returns error on empty directory stack

[osh_.cc stdout] Expected '1\ndirectory stack\n', got '0\n'

stdout:
0
stderr:
osh_.cc3 dirs builtin

[osh_.cc stdout] Expected '/\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py4 dirs -c to clear the stack

[osh_.py stdout] Expected '--\n/tmp /\n--\n/tmp\n', got '/tmp /\n--\n/tmp /\n--\n/tmp\n'

stdout:
/tmp /
--
/tmp /
--
/tmp
stderr:
osh_.cc4 dirs -c to clear the stack

[osh_.cc stdout] Expected '--\n/tmp /\n--\n/tmp\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py5 dirs -v to print numbered stack, one entry per line

[osh_.py stdout] Expected '--\n 0 /tmp\n 1 /\n--\n 0 /dev\n 1 /tmp\n 2 /\n', got '/tmp /\n--\n 0 /tmp\n 1 /\n/dev /tmp /\n--\n 0 /dev\n 1 /tmp\n 2 /\n'

stdout:
/tmp /
--
 0  /tmp
 1  /
/dev /tmp /
--
 0  /dev
 1  /tmp
 2  /
stderr:
osh_.cc5 dirs -v to print numbered stack, one entry per line

[osh_.cc stdout] Expected '--\n 0 /tmp\n 1 /\n--\n 0 /dev\n 1 /tmp\n 2 /\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py6 dirs -p to print one entry per line

[osh_.py stdout] Expected '--\n/tmp\n/\n--\n/dev\n/tmp\n/\n', got '/tmp /\n--\n/tmp\n/\n/dev /tmp /\n--\n/dev\n/tmp\n/\n'

stdout:
/tmp /
--
/tmp
/
/dev /tmp /
--
/dev
/tmp
/
stderr:
osh_.cc6 dirs -p to print one entry per line

[osh_.cc stdout] Expected '--\n/tmp\n/\n--\n/dev\n/tmp\n/\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py7 dirs -l to print in long format, no tilde prefix

[osh_.py stdout] Expected '~/oil_test /\n/tmp/oil_test /\n', got '~/oil_test /\n~/oil_test /\n/tmp/oil_test /\n'

stdout:
~/oil_test /
~/oil_test /
/tmp/oil_test /
stderr:
osh_.cc7 dirs -l to print in long format, no tilde prefix

[osh_.cc stdout] Expected '~/oil_test /\n/tmp/oil_test /\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py8 dirs to print using tilde-prefix format

[osh_.py stdout] Expected '~/oil_test /\n', got '~/oil_test /\n~/oil_test /\n'

stdout:
~/oil_test /
~/oil_test /
stderr:
osh_.cc8 dirs to print using tilde-prefix format

[osh_.cc stdout] Expected '~/oil_test /\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py9 dirs test converting true home directory to tilde

[osh_.py stdout] Expected '~/oil_test/tmp /\n', got '~/oil_test/tmp /\n~/oil_test/tmp /\n'

stdout:
~/oil_test/tmp /
~/oil_test/tmp /
stderr:
osh_.cc9 dirs test converting true home directory to tilde

[osh_.cc stdout] Expected '~/oil_test/tmp /\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc10 dirs don't convert to tilde when $HOME is substring

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.cc11 dirs tilde test when $HOME is exactly $PWD

[osh_.cc stdout] Expected '~ /\n~ /\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py12 dirs test of path alias `..`

[osh_.py stdout] Expected '/ /tmp\n', got '/ /tmp\n/ /tmp\n'

stdout:
/ /tmp
/ /tmp
stderr:
osh_.cc12 dirs test of path alias `..`

[osh_.cc stdout] Expected '/ /tmp\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.
osh_.py13 dirs test of path alias `.`

[osh_.py stdout] Expected '/tmp /tmp\n', got '/tmp /tmp\n/tmp /tmp\n'

stdout:
/tmp /tmp
/tmp /tmp
stderr:
osh_.cc13 dirs test of path alias `.`

[osh_.cc stdout] Expected '/tmp /tmp\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.