ci/deqp: Move the load reporting to a quiet block.
authorEric Anholt <eric@anholt.net>
Mon, 21 Dec 2020 19:25:10 +0000 (11:25 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 23 Dec 2020 20:48:12 +0000 (20:48 +0000)
No need for debug printing of how we computed it any more, brings the deqp
failures more into highlight in the job log.

Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8206>

.gitlab-ci/deqp-runner.sh

index 6d04fdb..4a3585f 100755 (executable)
@@ -204,6 +204,11 @@ check_vk_device_name() {
     fi
 }
 
+report_load() {
+    echo "System load: $(cut -d' ' -f1-3 < /proc/loadavg)"
+    echo "# of CPU cores: $(cat /proc/cpuinfo | grep processor | wc -l)"
+}
+
 # wrapper to supress +x to avoid spamming the log
 quiet() {
     set +x
@@ -239,8 +244,7 @@ FAILURES_CSV=$RESULTS/failures.csv
 run_cts $DEQP /tmp/case-list.txt $RESULTS_CSV
 DEQP_EXITCODE=$?
 
-echo "System load: $(cut -d' ' -f1-3 < /proc/loadavg)"
-echo "# of CPU cores: $(cat /proc/cpuinfo | grep processor | wc -l)"
+quiet report_load
 
 # Remove all but the first 50 individual XML files uploaded as artifacts, to
 # save fd.o space when you break everything.