show hint to reproduce CI results in local environment
@@ -138,14 +138,16 @@ main() {
exit 1
fi
+ test_command=(bash "/src/.pfnci/linux/tests/${TARGET}.sh")
if [[ "${stage}" = "test" ]]; then
"${docker_args[@]}" --volume="${repo_root}:/src:ro" --workdir "/src" \
- "${docker_image}" timeout 8h bash "/src/.pfnci/linux/tests/${TARGET}.sh" &
+ "${docker_image}" timeout 8h "${test_command[@]}" &
docker_pid=$!
trap "kill -KILL ${docker_pid}; docker kill '${container_name}' & wait; exit 1" TERM INT HUP
wait $docker_pid
trap TERM INT HUP
elif [[ "${stage}" = "shell" ]]; then
+ echo "Hint: ${test_command[@]}"
"${docker_args[@]}" --volume="${repo_root}:/src:rw" --workdir "/src" \
--tty --user "$(id -u):$(id -g)" \
"${docker_image}" bash
