Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/API/OVAL/skip_paths/test_skip_paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ cp "$srcdir/test.xml" "$root/b/"
mkdir -p "$root/c"
touch "$root/c/z"
cp "$srcdir/test.xml" "$root/c/"
# oscap probes will skip directories "b" and "c"
export OSCAP_PROBE_IGNORE_PATHS="$root/b:$root/c"
# oscap probes will skip directories "$root/n", "$root/b" and "$root/c"
export OSCAP_PROBE_IGNORE_PATHS="$root/n:$root/c:$root/b"
$OSCAP oval eval --results $result "$srcdir/test_skip_paths.xml"
assert_exists 1 '/oval_results/results/system/definitions/definition[@definition_id="oval:x:def:1" and @result="true"]'
assert_exists 1 '/oval_results/results/system/oval_system_characteristics/collected_objects/object[@id="oval:x:obj:1" and @flag="complete"]'
Expand Down
4 changes: 2 additions & 2 deletions tests/API/OVAL/skip_paths/test_skip_paths.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@
<textfilecontent54_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:3">
<filepath>/tmp/oscap_test_skip_paths/a/x</filepath>
<pattern>^.*$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
<instance datatype="int">1</instance>
</textfilecontent54_object>
<textfilecontent54_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:4">
<filepath>/tmp/oscap_test_skip_paths/b/y</filepath>
<pattern>^.*$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
<instance datatype="int">1</instance>
</textfilecontent54_object>
<filehash58_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version="1" id="oval:x:obj:5">
<filepath>/tmp/oscap_test_skip_paths/a/x</filepath>
Expand Down
Loading