mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-23 04:49:15 +00:00
Correctly handle errors
This commit is contained in:
parent
fa92d22660
commit
77147fb0db
1 changed files with 2 additions and 1 deletions
|
|
@ -6,8 +6,9 @@ clean:
|
|||
endif
|
||||
|
||||
define run_test
|
||||
@set -e; \
|
||||
rc=0; \
|
||||
$(2) || rc=$$?; \
|
||||
( set -e; $(2) ) || rc=$$?; \
|
||||
if [ $$rc -eq 0 ]; then \
|
||||
echo "PASS $1"; \
|
||||
echo PASS > $1.result; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue