diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-22 20:53:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 20:53:51 +0200 |
commit | d493374eb4b0e9f5f58548d445f02c0a8cf00298 (patch) | |
tree | aeec7b58688fd48e9adad25dd0334c3e78b544b8 /contrib/cirrus/logformatter | |
parent | e4ce1755090204dd3409d994e2639fec15018b6b (diff) | |
parent | 0e85768c966796a008587a6677c0be63e0b92b47 (diff) | |
download | podman-d493374eb4b0e9f5f58548d445f02c0a8cf00298.tar.gz podman-d493374eb4b0e9f5f58548d445f02c0a8cf00298.tar.bz2 podman-d493374eb4b0e9f5f58548d445f02c0a8cf00298.zip |
Merge pull request #7050 from edsantiago/logformat_trim_remote
logformatter: handle podman-remote
Diffstat (limited to 'contrib/cirrus/logformatter')
-rwxr-xr-x | contrib/cirrus/logformatter | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/cirrus/logformatter b/contrib/cirrus/logformatter index 86de98803..b56a829c5 100755 --- a/contrib/cirrus/logformatter +++ b/contrib/cirrus/logformatter @@ -303,14 +303,15 @@ END_HTML # (bindings test sometimes emits 'Running' with leading bullet char) elsif ($line =~ /^•?Running:/) { # Highlight the important (non-boilerplate) podman command. + $line =~ s/\s+--remote\s+/ /g; # --remote takes no args # Strip out the global podman options, but show them on hover - $line =~ s{(\S+\/podman)((\s+--(root|runroot|runtime|tmpdir|storage-opt|conmon|cgroup-manager|cni-config-dir|storage-driver|events-backend) \S+)*)(.*)}{ - my ($full_path, $options, $args) = ($1, $2, $5); + $line =~ s{(\S+\/podman(-remote)?)((\s+--(root|runroot|runtime|tmpdir|storage-opt|conmon|cgroup-manager|cni-config-dir|storage-driver|events-backend|url) \S+)*)(.*)}{ + my ($full_path, $remote, $options, $args) = ($1, $2||'', $3, $6); $options =~ s/^\s+//; # Separate each '--foo bar' with newlines for readability $options =~ s/ --/\n--/g; - qq{<span title="$full_path"><b>podman</b></span> <span class=\"boring\" title=\"$options\">[options]</span><b>$args</b>}; + qq{<span title="$full_path"><b>podman$remote</b></span> <span class=\"boring\" title=\"$options\">[options]</span><b>$args</b>}; }e; $current_output = ''; } |