run-cpu-stress.sh fails when no logfilename is passed.

This commit is contained in:
2026-07-04 11:16:30 +02:00
parent 69bea0be4f
commit e559c146b7
+5
View File
@@ -10,6 +10,11 @@ else
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
fi
if [ -z "${1}" ]; then
echo "usage run-cpu-stress.sh <logfile>"
exit 1
fi
measure_temp.sh > ${1} &
TPID=$!
fio ${PISTRESS_HOME}/fio/fio_cpu