#!/bin/bash

result=`mktemp`
stderr=`mktemp`

set -e
set -o pipefail

$OSCAP oval eval --results $result --skip-valid $srcdir/test_skip_valid.oval.xml 2> $stderr

grep -q "\*\*INVALID\*\*_state" $result
grep -q "OpenSCAP Error: Invalid OVAL family" $stderr

rm $result
rm $stderr


#!/bin/bash

result=`mktemp`

set -e
set -o pipefail

$OSCAP oval eval --results $result --skip-valid $srcdir/test_skip_valid.oval.xml

rm $result


--- 
+++ 
@@ -1,16 +1,11 @@
 #!/bin/bash
 
 result=`mktemp`
-stderr=`mktemp`
 
 set -e
 set -o pipefail
 
-$OSCAP oval eval --results $result --skip-valid $srcdir/test_skip_valid.oval.xml 2> $stderr
-
-grep -q "\*\*INVALID\*\*_state" $result
-grep -q "OpenSCAP Error: Invalid OVAL family" $stderr
+$OSCAP oval eval --results $result --skip-valid $srcdir/test_skip_valid.oval.xml
 
 rm $result
-rm $stderr
 
Add more assertions to a test

This commit adds an assert to invalid state in result file
and that a error message happens to stderr.
