@@ -271,6 +271,7 @@ static void dump_test_log(const struct prog_test_def *test,
271
271
int i ;
272
272
struct subtest_state * subtest_state ;
273
273
bool subtest_failed ;
274
+ bool subtest_filtered ;
274
275
bool print_subtest ;
275
276
276
277
/* we do not print anything in the worker thread */
@@ -289,9 +290,10 @@ static void dump_test_log(const struct prog_test_def *test,
289
290
for (i = 0 ; i < test_state -> subtest_num ; i ++ ) {
290
291
subtest_state = & test_state -> subtest_states [i ];
291
292
subtest_failed = subtest_state -> error_cnt ;
293
+ subtest_filtered = subtest_state -> filtered ;
292
294
print_subtest = verbose () || force_log || subtest_failed ;
293
295
294
- if (skip_ok_subtests && !subtest_failed )
296
+ if (( skip_ok_subtests && !subtest_failed ) || subtest_filtered )
295
297
continue ;
296
298
297
299
if (subtest_state -> log_cnt && print_subtest ) {
@@ -423,7 +425,7 @@ bool test__start_subtest(const char *subtest_name)
423
425
state -> subtest_num ,
424
426
test -> test_name ,
425
427
subtest_name )) {
426
- subtest_state -> skipped = true;
428
+ subtest_state -> filtered = true;
427
429
return false;
428
430
}
429
431
@@ -1129,6 +1131,7 @@ static int dispatch_thread_send_subtests(int sock_fd, struct test_state *state)
1129
1131
subtest_state -> name = strdup (msg .subtest_done .name );
1130
1132
subtest_state -> error_cnt = msg .subtest_done .error_cnt ;
1131
1133
subtest_state -> skipped = msg .subtest_done .skipped ;
1134
+ subtest_state -> filtered = msg .subtest_done .filtered ;
1132
1135
1133
1136
/* collect all logs */
1134
1137
if (msg .subtest_done .have_log )
@@ -1424,6 +1427,7 @@ static int worker_main_send_subtests(int sock, struct test_state *state)
1424
1427
1425
1428
msg .subtest_done .error_cnt = subtest_state -> error_cnt ;
1426
1429
msg .subtest_done .skipped = subtest_state -> skipped ;
1430
+ msg .subtest_done .filtered = subtest_state -> filtered ;
1427
1431
msg .subtest_done .have_log = false;
1428
1432
1429
1433
if (verbose () || state -> force_log || subtest_state -> error_cnt ) {
0 commit comments