Skip to content

Commit 25dd6c0

Browse files
committed
set exit code to 1 on fatal for travis
1 parent d7cff0c commit 25dd6c0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: sim/vsim.do

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
run -all;
1+
onfinish stop
2+
run -all
3+
if { [runStatus -full] == "break simulation_stop {\$finish}" } {
4+
echo Build succeeded
5+
quit -f -code 0
6+
} else {
7+
echo Build failed with status [runStatus -full]
8+
quit -f -code 1
9+
}
10+

0 commit comments

Comments
 (0)