From 4e1492f0fa3a48e5fa88d8623e47e50bb8527c87 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 14 Mar 2024 15:52:54 -0400 Subject: Pretty-print pytest xml results (if xmllint is present) * Adds Delivery.storage.results_dir member * Exposes storage.results_dir to templates * This is to make the test results human-readable * xmllint is optional. If it isn't installed it isn't a big deal. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ca0da52..b7b4e3f 100644 --- a/src/main.c +++ b/src/main.c @@ -244,6 +244,7 @@ int main(int argc, char *argv[], char *arge[]) { tpl_register("storage.wheel_artifact_dir", &ctx.storage.wheel_artifact_dir); tpl_register("storage.build_sources_dir", &ctx.storage.build_sources_dir); tpl_register("storage.build_docker_dir", &ctx.storage.build_docker_dir); + tpl_register("storage.results_dir", &ctx.storage.results_dir); tpl_register("conda.installer_baseurl", &ctx.conda.installer_baseurl); tpl_register("conda.installer_name", &ctx.conda.installer_name); tpl_register("conda.installer_version", &ctx.conda.installer_version); @@ -410,6 +411,8 @@ int main(int argc, char *argv[], char *arge[]) { if (globals.enable_testing) { msg(OMC_MSG_L1, "Begin test execution\n"); delivery_tests_run(&ctx); + msg(OMC_MSG_L1, "Rewriting test results\n"); + delivery_fixup_test_results(&ctx); } else { msg(OMC_MSG_L1 | OMC_MSG_WARN, "Test execution is disabled\n"); } -- cgit