File tree 2 files changed +4
-4
lines changed
tests/API/OVAL/skip_paths
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ cp "$srcdir/test.xml" "$root/b/"
15
15
mkdir -p " $root /c"
16
16
touch " $root /c/z"
17
17
cp " $srcdir /test.xml" " $root /c/"
18
- # oscap probes will skip directories "b" and "c"
19
- export OSCAP_PROBE_IGNORE_PATHS=" $root /b :$root /c"
18
+ # oscap probes will skip directories "$root/n", "$root/ b" and "$root/ c"
19
+ export OSCAP_PROBE_IGNORE_PATHS=" $root /n :$root /c: $root /b "
20
20
$OSCAP oval eval --results $result " $srcdir /test_skip_paths.xml"
21
21
assert_exists 1 ' /oval_results/results/system/definitions/definition[@definition_id="oval:x:def:1" and @result="true"]'
22
22
assert_exists 1 ' /oval_results/results/system/oval_system_characteristics/collected_objects/object[@id="oval:x:obj:1" and @flag="complete"]'
Original file line number Diff line number Diff line change 90
90
<textfilecontent54_object xmlns =" http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version =" 1" id =" oval:x:obj:3" >
91
91
<filepath >/tmp/oscap_test_skip_paths/a/x</filepath >
92
92
<pattern >^.*$</pattern >
93
- <instance datatype =" int" operation = " greater than or equal " >1</instance >
93
+ <instance datatype =" int" >1</instance >
94
94
</textfilecontent54_object >
95
95
<textfilecontent54_object xmlns =" http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version =" 1" id =" oval:x:obj:4" >
96
96
<filepath >/tmp/oscap_test_skip_paths/b/y</filepath >
97
97
<pattern >^.*$</pattern >
98
- <instance datatype =" int" operation = " greater than or equal " >1</instance >
98
+ <instance datatype =" int" >1</instance >
99
99
</textfilecontent54_object >
100
100
<filehash58_object xmlns =" http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version =" 1" id =" oval:x:obj:5" >
101
101
<filepath >/tmp/oscap_test_skip_paths/a/x</filepath >
You can’t perform that action at this time.
0 commit comments