File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
tests/API/XCCDF/tailoring Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ function test_api_xccdf_tailoring_profile_generate_fix {
124
124
fix_result=` mktemp`
125
125
# tailoring profile only with "always fail" rule and generate bash fix
126
126
$OSCAP xccdf eval --tailoring-file $TAILORING --profile " xccdf_com.example.www_profile_customized" --results-arf $tailoring_result $INPUT || [ " $? " == " 2" ]
127
- tailoring_id=$( xpath -q -e ' string(//ds:component-ref[contains(@id, "_tailoring")]/@id)' $tailoring_result )
127
+ tailoring_id=$( $XPATH $tailoring_result ' string(//ds:component-ref[contains(@id, "_tailoring")]/@id)' )
128
128
$OSCAP xccdf generate fix --tailoring-id $tailoring_id --result-id xccdf_org.open-scap_test-result_xccdf-com.example.www_profile_customized --results $fix_result $tailoring_result
129
129
130
130
if ! grep -q " echo \" Fix the first rule\" " $fix_result ; then
You can’t perform that action at this time.
0 commit comments