Skip to content

Commit

Permalink
Merge pull request #2150 from evgenyz/fix-kickstart-test
Browse files Browse the repository at this point in the history
Fix test for Kickstart remediation
  • Loading branch information
jan-cerny authored Aug 14, 2024
2 parents 6fa023c + d46804e commit ecf658f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/API/XCCDF/unittests/test_remediation_kickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ function test_normal {
kickstart_modified=$(mktemp)

sed "/This file was generated by OpenSCAP .* using:/d" "$srcdir/test_remediation_kickstart_expected.cfg" > "$expected_modified"
sed "/rootpw .*/d" "$srcdir/test_remediation_kickstart_expected.cfg" > "$expected_modified"
sed -i "/rootpw .*/d" "$expected_modified"
sed -i "s;TEST_DATA_STREAM_PATH;$srcdir/test_remediation_kickstart.ds.xml;" "$expected_modified"

$OSCAP xccdf generate fix --fix-type kickstart --output "$kickstart" --profile common "$srcdir/test_remediation_kickstart.ds.xml"

sed "/This file was generated by OpenSCAP .* using:/d" "$kickstart" > "$kickstart_modified"
sed "/rootpw .*/d" "$kickstart" > "$kickstart_modified"
sed -i "/rootpw .*/d" "$kickstart_modified"

diff -u "$expected_modified" "$kickstart_modified"

Expand Down

0 comments on commit ecf658f

Please sign in to comment.