aboutsummaryrefslogtreecommitdiff
path: root/src/stasis_main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-08-15 15:27:45 -0400
committerGitHub <noreply@github.com>2024-08-15 15:27:45 -0400
commitc069d0da7645eb1e596a53178960149224af8d48 (patch)
tree4f69e4ec146bbbae85f64207fac795b03060cd59 /src/stasis_main.c
parentcc5fa8b386200cce03ef8a081acccc92dc44ddfb (diff)
downloadstasis-c069d0da7645eb1e596a53178960149224af8d48.tar.gz
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
Diffstat (limited to 'src/stasis_main.c')
-rw-r--r--src/stasis_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stasis_main.c b/src/stasis_main.c
index 4c47672..dca9be8 100644
--- a/src/stasis_main.c
+++ b/src/stasis_main.c
@@ -328,6 +328,8 @@ int main(int argc, char *argv[]) {
// Prototypes can be found in template_func_proto.h
tpl_register_func("get_github_release_notes", &get_github_release_notes_tplfunc_entrypoint, 3, NULL);
tpl_register_func("get_github_release_notes_auto", &get_github_release_notes_auto_tplfunc_entrypoint, 1, &ctx);
+ tpl_register_func("junitxml_file", &get_junitxml_file_entrypoint, 1, &ctx);
+ tpl_register_func("basetemp_dir", &get_basetemp_dir_entrypoint, 1, &ctx);
// Set up PREFIX/etc directory information
// The user may manipulate the base directory path with STASIS_SYSCONFDIR