1####################################################### 2# 3# Redmine#5017: persistent classes should keep their tags 4# 5####################################################### 6 7body common control 8{ 9 inputs => { "../../default.cf.sub" }; 10 bundlesequence => { default("$(this.promise_filename)") }; 11 version => "1.0"; 12} 13 14bundle agent init 15{ 16 vars: 17 "dflags" string => ifelse("EXTRA", "-DDEBUG,EXTRA", "-DDEBUG"); 18 19 commands: 20 "$(G.echo)" classes => init_cancel_always; 21} 22 23body classes init_cancel_always 24{ 25 cancel_repaired => { "myclass" }; 26 cancel_notkept => { "myclass" }; 27 cancel_kept => { "myclass" }; 28} 29 30bundle agent test 31{ 32 commands: 33 "$(sys.cf_agent) -K $(init.dflags) -f $(this.promise_filename).sub" 34 classes => test_always("done_persisting"); 35} 36 37body classes test_always(x) 38{ 39 promise_repaired => { "$(x)" }; 40 promise_kept => { "$(x)" }; 41 repair_failed => { "$(x)" }; 42 repair_denied => { "$(x)" }; 43 repair_timeout => { "$(x)" }; 44} 45 46bundle agent check 47{ 48 vars: 49 done_persisting:: 50 "subout" string => execresult("$(sys.cf_agent) -K $(init.dflags) -f $(this.promise_filename).sub2", "noshell"); 51 reports: 52 "$(subout)"; 53} 54