Skip to content

Commit

Permalink
tests/datasets-parent-path: skip filter checks on windows
Browse files Browse the repository at this point in the history
The test is still run as validating the exit code is still useful.
  • Loading branch information
jasonish committed Jun 14, 2023
1 parent c6ded9e commit dfc5ff7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/datasets/datasets-parent-path/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ exit-code: 1

checks:
- filter:
requires:
lambda: sys.platform != "win32"
count: 1
match:
engine.message: "Directory traversals not allowed: ../dns-seen.txt"
- filter:
requires:
lambda: sys.platform != "win32"
count: 1
match:
engine.message: "Directory traversals not allowed: namespace/../dns-seen-1.txt"
- filter:
requires:
lambda: sys.platform != "win32"
count: 1
match:
engine.message: "Directory traversals not allowed: namespace/../dns-seen-save.txt"

0 comments on commit dfc5ff7

Please sign in to comment.