diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-12 20:08:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 20:08:47 +0100 |
commit | 2e9c94235bd06723a9cec391078c49705f1d5187 (patch) | |
tree | 2ec91f9d1be36b0c5cb4150dcf7fa68677f8506b /contrib/cirrus/runner.sh | |
parent | 2aa6a8577d088271251604b028100f00a442f5cd (diff) | |
parent | f44af2056138cbf64c1e70a99d62336ca3d949a3 (diff) | |
download | podman-2e9c94235bd06723a9cec391078c49705f1d5187.tar.gz podman-2e9c94235bd06723a9cec391078c49705f1d5187.tar.bz2 podman-2e9c94235bd06723a9cec391078c49705f1d5187.zip |
Merge pull request #8107 from cevich/measure_testing_stats
Cirrus: Collect runner.sh stats
Diffstat (limited to 'contrib/cirrus/runner.sh')
-rwxr-xr-x | contrib/cirrus/runner.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh index 330343e29..bf2b1a52b 100755 --- a/contrib/cirrus/runner.sh +++ b/contrib/cirrus/runner.sh @@ -260,6 +260,16 @@ dotest() { |& logformatter } +# Nearly every task in .cirrus.yml makes use of this shell script +# wrapped by /usr/bin/time to collect runtime statistics. Because the +# --output option is used to log stats to a file, every child-process +# inherits an open FD3 pointing at the log. However, some testing +# operations depend on making use of FD3, and so it must be explicitly +# closed here (and for all further child-processes). +# STATS_LOGFILE assumed empty/undefined outside of Cirrus-CI (.cirrus.yml) +# shellcheck disable=SC2154 +exec 3<&- + msg "************************************************************" # Required to be defined by caller # shellcheck disable=SC2154 |