Skip to content

Commit d99456e

Browse files
committed
Add XPATH variable to tailoring test.
1 parent 44cff2b commit d99456e

File tree

1 file changed

+1
-1
lines changed
  • tests/API/XCCDF/tailoring

1 file changed

+1
-1
lines changed

tests/API/XCCDF/tailoring/all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function test_api_xccdf_tailoring_profile_generate_fix {
124124
fix_result=`mktemp`
125125
# tailoring profile only with "always fail" rule and generate bash fix
126126
$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)')
128128
$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
129129

130130
if ! grep -q "echo \"Fix the first rule\"" $fix_result; then

0 commit comments

Comments
 (0)