Fix docker exit status when Verilator fails, #2153.

This commit is contained in:
Wilson Snyder 2020-03-28 17:25:20 -04:00
parent 81a63b0c7d
commit 8d3d185e3b

View File

@ -9,6 +9,10 @@
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
perl /usr/local/bin/verilator "$@"
status=$?
if [ $status -ne 0 ]; then
exit $status
fi
# Check if user set an obj_dir
obj_dir=$(echo " $@" | grep -oP '\s--Mdir\s*\K\S+')