Project

General

Profile

Actions

Bug #5302

closed

ncf test of "file_enforce_content" fails on CFEngine 3.6.0 but pass on CFEngine 3.5.2

Added by Nicolas PERRON over 9 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
1
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

The add of a new generic_method "file_enforce_content" prevent ncf to be built since the test of "file_enforce_content" does not work on CFEngine 3.6.0. The error messages are:

R: /tmp/ncf/tests/acceptance/./30_generic_methods/file_enforce_content.cf FAIL
R: grep command doesn't return 0 for command: /bin/grep -E "^This is a test line!$" "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_enforce_content_cf/tmp/test_1" 
R: grep command doesn't return 0 for command: /bin/grep -E "^This is a test line!$" "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_enforce_content_cf/tmp/test_2" 

But if it do the same manually:

root@debian-builder-7-64:/tmp/ncf/tests/acceptance# /bin/grep -E '^This is a test line!$' "/tmp/ncf/tests/acceptance/workdir/__30_generic_methods_file_enforce_content_cf/tmp/test_1" 
This is a test line!
root@debian-builder-7-64:/tmp/ncf/tests/acceptance# echo $?
0

Actions

Also available in: Atom PDF