Skip to content

Commit 7c9c9f9

Browse files
author
Caspar van Leeuwen
committed
Log full lscpu and os-release output in separate files in the bot job dir
1 parent 454e2e8 commit 7c9c9f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bot/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ lscpu_flags_line=$(lscpu | grep "Flags:")
177177
if [[ $lscpu_flags =~ Flags:\ (.*) ]]; then lscpu_flags=(${BASH_REMATCH[1]}); fi
178178
# for now, just print
179179
echo "bot/build.sh: CPU flags=${lscpu_flags[@]}"
180-
# todo: an actual comparison with a reference bash array, e.g. through
180+
# Also, log the full lscpu and os-release info:
181+
lscpu > _bot_job${SLURM_JOB_ID}.lscpu
182+
cat /etc/os-release > _bot_job${SLURM_JOB_ID}.os
183+
184+
# TODO: an actual comparison with a reference bash array, e.g. through
181185
# diff_result=$(diff <(printf "%s\n" "${lscpu_flags[@]}" | sort) <(printf "%s\n" "${lscpu_flags_ref[@]}" | sort))
182186
# if [ ! -z "$diff_result" ]; then
183187
# echo "bot/build.sh: ERROR: difference between reported lscpu flags and reference for this ($EESSI_SOFTWARE_SUBDIR_OVERRIDE) CPU architecture. This could mean an incorrect build host was used to build for this target.

0 commit comments

Comments
 (0)