From c069d0da7645eb1e596a53178960149224af8d48 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 15 Aug 2024 15:27:45 -0400 Subject: Add template convience functions (and bug fixes) (#29) * Die when render variable is NULL * This was caught when a call to {{ func:xyz() }} lacked opening/closing parenthesis * Scripts in tests should only render template strings right before execution * Remove conda version pin * This avoids updating conda in the base environment * This also avoids pitfalls associated with newly released (always broken) versions of conda * Add two template convenience functions * get_junitxml_result_auto() * get_basetemp_result_auto() * Handle rendering error for test script * Rename functions * get_junitxml_result_auto -> junitxml_file * get_basetemp_result_auto -> basetemp_dir * Thank you, @zacharyburnett --- include/template_func_proto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/template_func_proto.h') diff --git a/include/template_func_proto.h b/include/template_func_proto.h index 212759c..7778a11 100644 --- a/include/template_func_proto.h +++ b/include/template_func_proto.h @@ -5,5 +5,7 @@ int get_github_release_notes_tplfunc_entrypoint(void *frame, void *data_out); int get_github_release_notes_auto_tplfunc_entrypoint(void *frame, void *data_out); +int get_junitxml_file_entrypoint(void *frame, void *data_out); +int get_basetemp_dir_entrypoint(void *frame, void *data_out); #endif //TEMPLATE_FUNC_PROTO_H \ No newline at end of file -- cgit