3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-19 08:29:38 +00:00

Merge pull request #5825 from petterreinholdtsen/autotest-race-text-busy

Added locking around compiling in autotest.sh to avoid text busy race.
This commit is contained in:
Emil J 2026-04-28 09:12:33 +00:00 committed by GitHub
commit a966d06524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,9 +25,11 @@ firrtl2verilog=""
xfirrtl="../xfirrtl"
abcprog="$toolsdir/../../yosys-abc"
exec {lock}<"$toolsdir"; flock "$lock" 1>&2
if [ ! -f "$toolsdir/cmp_tbdata" -o "$toolsdir/cmp_tbdata.c" -nt "$toolsdir/cmp_tbdata" ]; then
( set -ex; ${CXX:-g++} -Wall ${CPPFLAGS} ${CXXFLAGS:-} -o "$toolsdir/cmp_tbdata" "$toolsdir/cmp_tbdata.c"; ) || exit 1
fi
flock -u "$lock"; exec {lock}>&-
while getopts xmGl:wkjvref:s:p:n:S:I:A:-: opt; do
case "$opt" in