Commit 6be09074 authored by Petr Špaček's avatar Petr Špaček Committed by Tomas Krizek

run.sh: support parallel execution of run.sh scripts

BTW the original LDPRELOAD= was total nonsense and did not work at all.
parent a5ec0108
......@@ -2,8 +2,9 @@
set -o errexit -o nounset
MAKEDIR="$(dirname "$0")"
rm -f "${MAKEDIR}/env.sh"
LDPRELOAD="$(make depend -C "${MAKEDIR}")"
# build env.sh only if needed
# it is handy if someone is executing run.sh in parallel
test ! -f "${MAKEDIR}/env.sh" && make depend -C "${MAKEDIR}"
source "${MAKEDIR}/env.sh"
# compatibility with old TESTS= env variable
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment