diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-06 00:05:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 00:05:16 +0200 |
commit | 44ba13e7d52b5b346efffe3e14a8dac6c2fa05c0 (patch) | |
tree | 4608cf7973fda141a50b6344e13b999aa7f1056c /contrib/cirrus/logformatter | |
parent | f48b1639348da2e398c4e30e10f542dec02c69d5 (diff) | |
parent | 9546638a09335bc32fb391f59b392065a6ba611d (diff) | |
download | podman-44ba13e7d52b5b346efffe3e14a8dac6c2fa05c0.tar.gz podman-44ba13e7d52b5b346efffe3e14a8dac6c2fa05c0.tar.bz2 podman-44ba13e7d52b5b346efffe3e14a8dac6c2fa05c0.zip |
Merge pull request #7924 from edsantiago/logformatter_on_sysbindings
logformatter: run on system tests & bindings
Diffstat (limited to 'contrib/cirrus/logformatter')
-rwxr-xr-x | contrib/cirrus/logformatter | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter index 2ab8aa117..0cbd1f34b 100755 --- a/contrib/cirrus/logformatter +++ b/contrib/cirrus/logformatter @@ -517,25 +517,20 @@ END_SYNOPSIS } # eg "test fedora", "special_testing_rootless" + # WARNING: As of 2020-10-05, $CIRRUS_TASK_NAME reflects the same + # descriptive content as our $subtest_name argument (confirm via + # cross-checking runner.sh:logformatter() vs cirrus.yml:&std_name_fmt). + # If this ever becomes untrue, just add _tr("Subtest", $subtest_name). my $test_name = _env_replace("{CIRRUS_TASK_NAME}"); - if (my $rcli = $ENV{RCLI}) { - $test_name .= " [remote]" if $rcli eq 'true'; - } - else { - $test_name .= " [no RCLI; cannot determine remote/local]"; - } + # (Special-case cleanup: Cirrus\ quotes\ spaces; remove for readability). + $test_name =~ s/\\\s+/ /g; $s .= _tr("Test name", $test_name); - # Subtest, e.g. system_test - $s .= _tr("Subtest", $subtest_name); - # Link to further Cirrus results, e.g. other runs. # Build is mostly boring, it's usually TASK that we want to see. - $s .= _tr("Cirrus Build ID", "<small>" . _a("{CIRRUS_BUILD_ID}", "https://cirrus-ci.com/build/{CIRRUS_BUILD_ID}") . "</small>"); - $s .= _tr("Cirrus <b>Task</b> ID", _a("{CIRRUS_TASK_ID}", "https://cirrus-ci.com/task/{CIRRUS_TASK_ID}")); - - # "none", "rootless" - $s .= _tr("Special mode", _env_replace("{SPECIALMODE}")); + $s .= _tr("Cirrus", sprintf("<small>Build %s</small> / <b>Task %s</b>", + _a("{CIRRUS_BUILD_ID}", "https://cirrus-ci.com/build/{CIRRUS_BUILD_ID}"), + _a("{CIRRUS_TASK_ID}", "https://cirrus-ci.com/task/{CIRRUS_TASK_ID}"))); $s .= "</table>\n"; return $s; |