File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ func validateRunnerKey(k string) error {
767
767
if k == includeRunnerKey || k == testRunnerKey || k == dumpRunnerKey || k == execRunnerKey || k == bindRunnerKey || k == runnerRunnerKey {
768
768
return fmt .Errorf ("runner name %q is reserved for built-in runner" , k )
769
769
}
770
- if k == ifSectionKey || k == descSectionKey || k == loopSectionKey {
770
+ if k == ifSectionKey || k == descSectionKey || k == loopSectionKey || k == deferSectionKey || k == forceSectionKey {
771
771
return fmt .Errorf ("runner name %q is reserved for built-in section" , k )
772
772
}
773
773
return nil
@@ -781,7 +781,7 @@ func validateStepKeys(s map[string]any) error {
781
781
mainRunner := 0
782
782
subRunner := 0
783
783
for k := range s {
784
- if k == ifSectionKey || k == descSectionKey || k == loopSectionKey {
784
+ if k == ifSectionKey || k == descSectionKey || k == loopSectionKey || k == deferSectionKey || k == forceSectionKey {
785
785
continue
786
786
}
787
787
if k == testRunnerKey || k == dumpRunnerKey || k == bindRunnerKey {
You can’t perform that action at this time.
0 commit comments