adamwill / rpms / openscap

Forked from rpms/openscap 3 years ago
Clone

Blame SOURCES/add_oval_results_to_test.patch

7a6a25
From 293a2da756796cba8bcf3d9b7a153e685030594f Mon Sep 17 00:00:00 2001
7a6a25
From: Matus Marhefka <mmarhefk@redhat.com>
7a6a25
Date: Mon, 27 May 2019 10:29:54 +0200
7a6a25
Subject: [PATCH] Add --oval-results to the
7a6a25
 ds_continue_without_remote_resources test
7a6a25
7a6a25
---
7a6a25
 tests/DS/test_ds.sh | 5 +++--
7a6a25
 1 file changed, 3 insertions(+), 2 deletions(-)
7a6a25
7a6a25
diff --git a/tests/DS/test_ds.sh b/tests/DS/test_ds.sh
7a6a25
index 1383ad87a..43ea43797 100755
7a6a25
--- a/tests/DS/test_ds.sh
7a6a25
+++ b/tests/DS/test_ds.sh
7a6a25
@@ -418,14 +418,15 @@ function test_ds_continue_without_remote_resources() {
7a6a25
 	local DS="${srcdir}/$1"
7a6a25
 	local PROFILE="$2"
7a6a25
 	local result=$(mktemp)
7a6a25
+	local oval_result="test_single_rule.oval.xml.result.xml"
7a6a25
 
7a6a25
-	$OSCAP xccdf eval --profile "$PROFILE" --results "$result" "$DS"
7a6a25
+	$OSCAP xccdf eval --oval-results --profile "$PROFILE" --results "$result" "$DS"
7a6a25
 
7a6a25
 	assert_exists 1 '//rule-result[@idref="xccdf_com.example.www_rule_test-pass"]/result[text()="pass"]'
7a6a25
 	assert_exists 1 '//rule-result[@idref="xccdf_com.example.www_rule_test-remote_res"]/result[text()="notchecked"]'
7a6a25
 	assert_exists 1 '//rule-result[@idref="xccdf_com.example.www_rule_test-pass2"]/result[text()="pass"]'
7a6a25
 
7a6a25
-	rm -f "$result"
7a6a25
+	rm -f "$result" "$oval_result"
7a6a25
 }
7a6a25
 
7a6a25