|
|
|
|
76
|
warnings => []
|
76
|
warnings => []
|
77
|
};
|
77
|
};
|
78
|
# test against each condition from the pre-parsed condblock
|
78
|
# test against each condition from the pre-parsed condblock
|
79
|
- # if any number of condition warnings is found, accept
|
|
|
80
|
- # otherwise accept step unless a condition failed
|
|
|
|
|
79
|
+ # refuse step only in case all conditions passed without warnings,
|
|
|
80
|
+ # in all other cases (fail, warning), accept
|
81
|
COND: foreach my $condstr (@{ $master_step->{conds} }) {
|
81
|
COND: foreach my $condstr (@{ $master_step->{conds} }) {
|
82
|
my $c = SugarTrail::Template::Condition->new($condstr);
|
82
|
my $c = SugarTrail::Template::Condition->new($condstr);
|
83
|
my ($r, $w) = $c->match($args);
|
83
|
my ($r, $w) = $c->match($args);
|