systemd-cat cat "/$name.log"
}
+set +x
# Associative array for running tasks, where running[test-path]=PID
declare -A running=()
for task in "${TEST_LIST[@]}"; do
done
if [[ -x $task ]]; then
+ echo "Executing test '$task'"
log_file="/${task##*/}.log"
$task &>"$log_file" &
running[$task]=$!
# Wait for remaining running tasks
for key in "${!running[@]}"; do
+ echo "Waiting for test '$key' to finish"
wait ${running[$key]} && ec=0 || ec=$?
report_result "$key" $ec
unset running["$key"]
done
+set -x
+
# Test logs are sometimes lost, as the system shuts down immediately after
journalctl --sync