File tree Expand file tree Collapse file tree
tests/API/OVAL/skip_paths Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ cp "$srcdir/test.xml" "$root/b/"
1515mkdir -p " $root /c"
1616touch " $root /c/z"
1717cp " $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 "
2020$OSCAP oval eval --results $result " $srcdir /test_skip_paths.xml"
2121assert_exists 1 ' /oval_results/results/system/definitions/definition[@definition_id="oval:x:def:1" and @result="true"]'
2222assert_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 9090 <textfilecontent54_object xmlns =" http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version =" 1" id =" oval:x:obj:3" >
9191 <filepath >/tmp/oscap_test_skip_paths/a/x</filepath >
9292 <pattern >^.*$</pattern >
93- <instance datatype =" int" operation = " greater than or equal " >1</instance >
93+ <instance datatype =" int" >1</instance >
9494 </textfilecontent54_object >
9595 <textfilecontent54_object xmlns =" http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version =" 1" id =" oval:x:obj:4" >
9696 <filepath >/tmp/oscap_test_skip_paths/b/y</filepath >
9797 <pattern >^.*$</pattern >
98- <instance datatype =" int" operation = " greater than or equal " >1</instance >
98+ <instance datatype =" int" >1</instance >
9999 </textfilecontent54_object >
100100 <filehash58_object xmlns =" http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" version =" 1" id =" oval:x:obj:5" >
101101 <filepath >/tmp/oscap_test_skip_paths/a/x</filepath >
You can’t perform that action at this time.
0 commit comments