Skip to content

Commit 72c8512

Browse files
committed
Fix sed expression
The purpose of this test is to test if probe doesn't collect data from the host. The comment in oval:0:def:2 in test_probes_yamlfilecontent_offline_mode.xml says: "make sure file in host doesn't match" and the expected result is false. The corresponding state expects value of value_of to be `outstance`. Based on this, the sed command should modify the file in host, not in guest, because if the file in guest is modified the object and state will match and definition result will be true.
1 parent 5fc7cd7 commit 72c8512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/probes/yamlfilecontent/test_probes_yamlfilecontent_offline_mode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function test_probes_yamlfilecontent_offline_mode {
2020
cp "${srcdir}/${YAML_FILE}" "${tmpdir}/tmp"
2121

2222
cp "${srcdir}/${YAML_FILE}" /tmp
23-
sed -i 's/name: instance/name: outstance/' "${tmpdir}/tmp/${YAML_FILE}"
23+
sed -i 's/name: instance/name: outstance/' "/tmp/${YAML_FILE}"
2424
cp "${srcdir}/${YAML_FILE}" "/tmp/host-${YAML_FILE}"
2525

2626
set_chroot_offline_test_mode "$tmpdir"

0 commit comments

Comments
 (0)