mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-30 21:54:16 +08:00
38d1e73868
Not needed for non-debugging builds. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9422 Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24348>
25 lines
571 B
Bash
Executable File
25 lines
571 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# shellcheck disable=SC1091 # the path is created in build-kdl and
|
|
# here is check if exist
|
|
|
|
terminate() {
|
|
echo "ci-kdl.sh caught SIGTERM signal! propagating to child processes"
|
|
for job in $(jobs -p)
|
|
do
|
|
kill -15 "$job"
|
|
done
|
|
}
|
|
|
|
trap terminate SIGTERM
|
|
|
|
if [ -f /ci-kdl.venv/bin/activate ]; then
|
|
source /ci-kdl.venv/bin/activate
|
|
/ci-kdl.venv/bin/python /ci-kdl.venv/bin/ci-kdl | tee -a /results/kdl.log &
|
|
child=$!
|
|
wait $child
|
|
mv kdl_*.json /results/kdl.json
|
|
else
|
|
echo -e "Not possible to activate ci-kdl virtual environment"
|
|
fi
|
|
|