diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index 417be81297f..7173613dac6 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -54,6 +54,12 @@ echo section_switch init_stage2 "Pre-testing hardware setup" +job_time=$(get_job_seconds) +uptime=$(cut -d ' ' -f1 /proc/uptime) +echo "$(get_current_minsec) after job start == $uptime sec after kernel boot time" +printf -v uptime_rounded "%.0f" "$uptime" +echo "Kernel boot occurred $((job_time-uptime_rounded)) seconds after job start" + set -ex # Set up any devices required by the jobs