diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-14 15:52:54 -0400 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-14 15:52:54 -0400 | 
| commit | 4e1492f0fa3a48e5fa88d8623e47e50bb8527c87 (patch) | |
| tree | 04198e99f40355cdd2644884bd8ca2b33f832069 /src/main.c | |
| parent | 7656ed0e011f910b84131360cc82e335f01913db (diff) | |
| download | ohmycal-4e1492f0fa3a48e5fa88d8623e47e50bb8527c87.tar.gz | |
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.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 3 | 
1 files changed, 3 insertions, 0 deletions
@@ -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");      }  | 
