1# Test $(this.promise_dirname) 2 3body common control 4{ 5 inputs => { "../../default.cf.sub" }; 6 bundlesequence => { default("$(this.promise_filename)") }; 7} 8 9####################################################### 10 11bundle agent init 12{ 13 vars: 14 "expected" string => dirname($(this.promise_filename)); 15} 16 17####################################################### 18 19bundle agent test 20{ 21} 22 23####################################################### 24 25bundle agent check 26{ 27 classes: 28 "ok" expression => strcmp($(init.expected), $(this.promise_dirname)); 29 30 reports: 31 DEBUG:: 32 "$(this.promise_filename) expected dirname $(init.expected), actual $(this.promise_dirname)"; 33 34 ok:: 35 "$(this.promise_filename) Pass"; 36 !ok:: 37 "$(this.promise_filename) FAIL"; 38} 39