From dfc5ff74e1d1a19f6f7cf2546007b5e57ef775f0 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 14 Jun 2023 10:50:56 -0700 Subject: [PATCH] tests/datasets-parent-path: skip filter checks on windows The test is still run as validating the exit code is still useful. --- tests/datasets/datasets-parent-path/test.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/datasets/datasets-parent-path/test.yaml b/tests/datasets/datasets-parent-path/test.yaml index ec1846ac7..a1d08d1a8 100644 --- a/tests/datasets/datasets-parent-path/test.yaml +++ b/tests/datasets/datasets-parent-path/test.yaml @@ -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"