diff --git a/tests/API/XCCDF/unittests/test_remediation_kickstart.sh b/tests/API/XCCDF/unittests/test_remediation_kickstart.sh index 22bdc92118..a829f02f42 100755 --- a/tests/API/XCCDF/unittests/test_remediation_kickstart.sh +++ b/tests/API/XCCDF/unittests/test_remediation_kickstart.sh @@ -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"