ElektraInitiative / libelektra

Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.
https://www.libelektra.org
BSD 3-Clause "New" or "Revised" License
208 stars 123 forks source link

testshell_markdown_kdb_ls fails on additional keys #2440

Closed markus2330 closed 3 years ago

markus2330 commented 5 years ago

Steps to Reproduce the Problem

Have some keys in /tests/examples/kdb-ls (but not in user/tests/examples/kdb-ls) Run testshell_markdown_kdb_ls

Expected Result

Either successful testcase or some error that test environment is dirty.

Actual Result

        Start 167: testshell_markdown_kdb_ls
  1/213 Test #167: testshell_markdown_kdb_ls ................***Failed    1.20 sec
Input: /home/markus/Projekte/Elektra/build-64/elektra-0.8.26/doc/help/kdb-ls.md
kdb mount ls.ecf user/tests/examples dump
kdb set user/tests/examples/kdb-ls/test val1
kdb set user/tests/examples/kdb-ls/test/foo/bar val2
kdb set user/tests/examples/kdb-ls/test/fizz/buzz fizzbuzz
kdb set user/tests/examples/kdb-ls/tost val3
kdb set user/tests/examples/kdb-ls/tost/level lvl
kdb ls /tests/examples/kdb-ls
kdb ls /tests/examples/kdb-ls/ --max-depth=1
kdb ls /tests/examples/kdb-ls --max-depth=1
kdb ls /tests/examples/kdb-ls --min-depth=1 --max-depth=2
kdb ls /tests/examples/kdb-ls/test
kdb ls /tests/examples/kdb-ls/ -v

ERROR - STDOUT:
“size of all keys in mount point: 11
size of requested keys: 5
user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar
user/tests/examples/kdb-ls/tost
user/tests/examples/kdb-ls/tost/level”
does not match
“size of all keys in mount point: 5⏎size of requested keys: 5⏎user/tests/examples/kdb-ls/test⏎user/tests/examples/kdb-ls/test/fizz/buzz⏎user/tests/examples/kdb-ls/test/foo/bar⏎user/tests/examples/kdb-ls/tost⏎user/tests/examples/kdb-ls/tost/level”

kdb rm -r user/tests/examples
kdb umount user/tests/examples
shell_recorder /tmp/tmp.7t2fZY52uJ RESULTS: 19 test(s) done 1 error(s).

—— Protocol ————————————————————————————————————————————————————
CMD: kdb mount ls.ecf user/tests/examples dump
RET: 0

CMD: kdb set user/tests/examples/kdb-ls/test val1
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/test with string "val1"

CMD: kdb set user/tests/examples/kdb-ls/test/foo/bar val2
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/test/foo/bar with string "val2"

CMD: kdb set user/tests/examples/kdb-ls/test/fizz/buzz fizzbuzz
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/test/fizz/buzz with string "fizzbuzz"

CMD: kdb set user/tests/examples/kdb-ls/tost val3
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/tost with string "val3"

CMD: kdb set user/tests/examples/kdb-ls/tost/level lvl
RET: 0
STDOUT: Create a new key user/tests/examples/kdb-ls/tost/level with string "lvl"

CMD: kdb ls /tests/examples/kdb-ls
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar
user/tests/examples/kdb-ls/tost
user/tests/examples/kdb-ls/tost/level

CMD: kdb ls /tests/examples/kdb-ls/ --max-depth=1
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/tost

CMD: kdb ls /tests/examples/kdb-ls --max-depth=1
RET: 0

CMD: kdb ls /tests/examples/kdb-ls --min-depth=1 --max-depth=2
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/tost

CMD: kdb ls /tests/examples/kdb-ls/test
RET: 0
STDOUT: user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar

CMD: kdb ls /tests/examples/kdb-ls/ -v
RET: 0
STDOUT: size of all keys in mount point: 11
size of requested keys: 5
user/tests/examples/kdb-ls/test
user/tests/examples/kdb-ls/test/fizz/buzz
user/tests/examples/kdb-ls/test/foo/bar
user/tests/examples/kdb-ls/tost
user/tests/examples/kdb-ls/tost/level
=== FAILED stdout does not match expected pattern size of all keys in mount point: 5⏎size of requested keys: 5⏎user/tests/examples/kdb-ls/test⏎user/tests/examples/kdb-ls/test/fizz/buzz⏎user/tests/examples/kdb-ls/test/foo/bar⏎user/tests/examples/kdb-ls/tost⏎user/tests/examples/kdb-ls/tost/level

CMD: kdb rm -r user/tests/examples
RET: 0

CMD: kdb umount user/tests/examples
RET: 0
————————————————————————————————————————————————————————————————

System Information

Further Log Files and Output

stale[bot] commented 3 years ago

I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

stale[bot] commented 3 years ago

I closed this issue now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart: