line |
true |
false |
branch |
23
|
0 |
0 |
if ($or_testrun->shortname)
|
26
|
0 |
0 |
if ($or_testrun->testrun_scheduling) { }
|
34
|
0 |
0 |
if ($or_testrun->testrun_scheduling->status eq 'schedule') { }
|
35
|
0 |
0 |
if ($or_testrun->testrun_scheduling->requested_hosts->count)
|
40
|
0 |
0 |
if ($or_testrun->testrun_scheduling->host and $or_testrun->testrun_scheduling->host->name)
|
48
|
0 |
0 |
$or_testrun->testrun_scheduling->auto_rerun ? :
|
55
|
0 |
0 |
if ($or_testrun->notes)
|
60
|
0 |
0 |
if (my(@a_preconditions) = $or_testrun->ordered_preconditions) { }
|
76
|
0 |
0 |
if ($or_testruns->isa('DBIx::Class::ResultSet')) { }
|
202
|
0 |
0 |
if ($b_dryrun)
|
217
|
0 |
0 |
unless ($hr_options->{'precondition'} or $hr_options->{'macroprecond'})
|
220
|
0 |
0 |
if (exists $hr_options->{'rerun_on_error'} and not $hr_options->{'rerun_on_error'} =~ /^\d+$/)
|
223
|
0 |
0 |
if ($hr_options->{'earliest'})
|
227
|
0 |
0 |
if ($or_parser->success) { }
|
228
|
0 |
0 |
if ($hr_options->{'verbose'})
|
238
|
0 |
0 |
if ($hr_options->{'requested_host'})
|
240
|
0 |
0 |
if (my $or_host = Tapper::Model::model('TestrunDB')->resultset('Host')->search({'name', $hr_options->{'requested_host'}[$i_counter]}, {'rows', 1})->first) { }
|
257
|
0 |
0 |
if ($hr_options->{'notify'})
|
259
|
0 |
0 |
unless (grep {$hr_options->{'notify'} eq $_;} 'pass', 'fail')
|
265
|
0 |
0 |
if ($hr_options->{'macroprecond'})
|
266
|
0 |
0 |
if (-e $hr_options->{'macroprecond'})
|
274
|
0 |
0 |
if (my($s_required) = $hr_options->{'macroprecond_evaluated'} =~ /^# (?:tapper[_-])?mandatory[_-]fields:\s*(.+)/m)
|
279
|
0 |
0 |
unless ($hr_options->{'D'}{$s_name})
|
302
|
0 |
0 |
if ($hr_options->{'help'})
|
309
|
0 |
0 |
if (my $s_error = s_create_testrun_parameter_check($hr_options))
|
314
|
0 |
0 |
if ($hr_options->{'macroprecond'})
|
317
|
0 |
0 |
if ($hr_options->{'precondition'})
|
321
|
0 |
0 |
unless (@a_ids)
|
336
|
0 |
0 |
$hr_options->{'rerun_on_error'} ? :
|
339
|
0 |
0 |
if (exists $hr_options->{'notify'})
|
347
|
0 |
0 |
if ($i_testrun_id) { }
|
348
|
0 |
0 |
if ($s_error)
|
353
|
0 |
0 |
if ($s_error) { }
|
368
|
0 |
0 |
if (my $retval = $or_cmd->assign_preconditions($i_testrun_id, @a_ids))
|
376
|
0 |
0 |
if ($hr_options->{'requested_host'})
|
379
|
0 |
0 |
unless ($or_cmd_req->add_host($i_testrun_id, $s_host))
|
385
|
0 |
0 |
if ($hr_options->{'requested_feature'})
|
388
|
0 |
0 |
unless ($or_cmd_req->add_feature($i_testrun_id, $s_feature))
|
399
|
0 |
0 |
if ($hr_options->{'verbose'}) { }
|
403
|
0 |
0 |
if ($ENV{'TAPPER_WITH_WEB'}) { }
|
425
|
0 |
0 |
if ($hr_options->{'help'})
|
432
|
0 |
0 |
unless ($hr_options->{'force'})
|
440
|
0 |
0 |
if (my $s_error = $or_cmd->del($i_testrun_id))
|
443
|
0 |
0 |
if ($hr_options->{'verbose'})
|
461
|
0 |
0 |
if ($hr_options->{'help'})
|
471
|
0 |
0 |
if (my $ar_testrun_ids = $hr_options->{'id'}) { }
|
473
|
0 |
0 |
if (my $i_new_testrun_id = $or_testrun->rerun($i_testrun_id, $hr_options)) { }
|
474
|
0 |
0 |
if ($hr_options->{'verbose'}) { }
|
502
|
0 |
0 |
if (my $or_queue_rs = $or_schema->resultset('Queue')->search({'name', $s_queue}, {'select', ['id']})) { }
|
519
|
0 |
0 |
if (@a_check_queues)
|
533
|
0 |
0 |
if (my $or_host_rs = $or_schema->resultset('Host')->search({'name', $s_host}, {'select', ['id']})) { }
|
550
|
0 |
0 |
if (@a_check_hosts)
|
567
|
0 |
0 |
if ($ENV{'DEBUG'})
|
578
|
0 |
0 |
if ($h_options{'help'})
|
592
|
0 |
0 |
if (my $i_testrun_id = $h_options{'id'}) { }
|
|
0 |
0 |
elsif (@a_given_options) { }
|
594
|
0 |
0 |
if (@a_given_options)
|
606
|
0 |
0 |
if (my(@a_state_selection) = grep({$h_options{$_};} 'finished', 'running', 'schedule', 'prepare'))
|
610
|
0 |
0 |
if (my $ar_queue_ids = ar_get_queue_ids($or_schema, $h_options{'queue'}))
|
614
|
0 |
0 |
if (my $ar_host_ids = ar_get_queue_ids($or_schema, $h_options{'host'}))
|
633
|
0 |
0 |
if (exists $h_options{'limit'}) { }
|
634
|
0 |
0 |
if ($h_options{'limit'} > 0)
|
641
|
0 |
0 |
if ($h_options{'verbose'}) { }
|
667
|
0 |
0 |
if ($h_options{'verbose'}) { }
|
676
|
0 |
0 |
if ($ENV{'DEBUG'})
|
700
|
0 |
0 |
if ($c->options->{'help'} or not $c->options->{'id'})
|
701
|
0 |
0 |
unless $c->options->{'id'}
|
|
0 |
0 |
unless @{[] unless $c->options->{'id'};}
|
702
|
0 |
0 |
unless $c->options->{'state'} or defined $c->options->{'auto-rerun'}
|
718
|
0 |
0 |
unless ($testrun)
|
723
|
0 |
0 |
if ($c->options->{'topic'})
|
729
|
0 |
0 |
unless ($testrun->testrun_scheduling->status eq 'prepare' or $testrun->testrun_scheduling->status eq 'schedule')
|
737
|
0 |
0 |
if ($c->options->{'status'})
|
741
|
0 |
0 |
if (defined $c->options->{'auto-rerun'})
|
745
|
0 |
0 |
if ($c->options->{'verbose'}) { }
|
760
|
0 |
0 |
if ($c->options->{'help'} or not $c->options->{'id'})
|
761
|
0 |
0 |
unless $c->options->{'id'}
|
|
0 |
0 |
unless @{[] unless $c->options->{'id'};}
|
774
|
0 |
0 |
if $retval
|
786
|
0 |
0 |
if ($c->options->{'help'} or not $c->options->{'id'})
|
787
|
0 |
0 |
unless $c->options->{'id'}
|
|
0 |
0 |
unless @{[] unless $c->options->{'id'};}
|
798
|
0 |
0 |
if $retval
|
810
|
0 |
0 |
if ($c->options->{'help'} or not $c->options->{'id'})
|
811
|
0 |
0 |
unless $c->options->{'id'}
|
|
0 |
0 |
unless @{[] unless $c->options->{'id'};}
|
822
|
0 |
0 |
if $retval
|
842
|
0 |
0 |
if ($or_apprad->can('group_commands'))
|