File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ =head1 SEE ALSO
138
138
},
139
139
);
140
140
141
-
141
+ my $status = 0;
142
142
DB: for my $db ( @tests ) {
143
143
if ( !$tests { $db } ) {
144
144
say " No test for $db . Available tests: " . join " , " , keys %tests ;
@@ -151,6 +151,7 @@ =head1 SEE ALSO
151
151
system $cmd ;
152
152
if ( $? != 0 ) {
153
153
say " Error setting up test: $? " ;
154
+ $status = 1;
154
155
next DB;
155
156
}
156
157
}
@@ -160,16 +161,19 @@ =head1 SEE ALSO
160
161
system ( qw( prove -lr ) , @j1 , @files );
161
162
if ( $? != 0 ) {
162
163
say " Test failure ($db ): $? " ;
164
+ $status = 1;
163
165
last ;
164
166
}
165
167
166
168
for my $cmd ( @{ $test -> {teardown } || [] } ) {
167
169
system $cmd ;
168
170
if ( $? != 0 ) {
169
171
say " Error tearing down test: $? " ;
172
+ $status = 1;
170
173
}
171
174
}
172
175
173
176
say " -- Passed test: $db " ;
174
177
}
175
178
179
+ exit $status ;
You can’t perform that action at this time.
0 commit comments