view tests/cli/test_find.yaml @ 546:6ef89b31ddda 2.0.0b3

internal: Fix a severe bug with the file-system wrappers on OSX. `os.walk` is expected to support modifying its return values `dirnames` and `filenames` so that you can filter out items that need to be iterated upon. I was previously returning a different list in the wrappers, which means filtering was completely broken.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 01 Aug 2015 08:09:53 -0700
parents 95b77239c3b7
children 9ccc933ac2c7
line wrap: on
line source

---
args: find
out: ''
---
args: find
replace_out_path_sep: true
in:
    pages/foo.md: ''
out: |
    pages/foo.md
---
args: find
replace_out_path_sep: true
in:
    pages/foo.md: ''
    posts/2015-01-10_blah.md: ''
out: |
    pages/foo.md
    posts/2015-01-10_blah.md
---
args: find foo
replace_out_path_sep: true
in:
    pages/foo.md: ''
    pages/bar.md: ''
    pages/foo/child.md: ''
    pages/something.md: ''
out: |
    pages/foo.md
    pages/foo/child.md
---
args: find --exact *foo.md
replace_out_path_sep: true
in:
    pages/foo.md: ''
    pages/bar.md: ''
    pages/foo/child.md: ''
    pages/something.md: ''
out: |
    pages/foo.md