Project

General

Profile

Actions

Bug #4984

closed

Some test fails on CFEngine 3.6 as the execresult and returnszero functions are cached at the begining of execution

Added by Nicolas CHARLES about 10 years ago. Updated about 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

In CFEgnine 3.6, the functions execresult and returnszero are executed at the start of the runs if not guarded by a class, and their result cached for the whole execution
This brings havoc on our tests as we do rely a lot on this to check the correct behaviour of promises (see https://dev.cfengine.com/issues/6050 )

We cannot simply add

cache_system_functions => "false" 

in the body common control as this is not compatible with CFEngine 3.5

We so need to rewrite most test to have execresult and returnszero guarded by classes

Actions

Also available in: Atom PDF