Skip to content

Commit f0413d8

Browse files
committed
fixes for execution spec tests
1 parent 6c9b733 commit f0413d8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

null

Lines changed: 0 additions & 1 deletion
This file was deleted.

pkg/coordinator/tasks/run_external_tasks/task.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/ethpandaops/assertoor/pkg/coordinator/types"
13+
"github.com/ethpandaops/assertoor/pkg/coordinator/vars"
1314
"github.com/sirupsen/logrus"
1415
"gopkg.in/yaml.v2"
1516
)
@@ -83,7 +84,7 @@ func (t *Task) Execute(ctx context.Context) error {
8384
// create new variable scope for test configuration
8485
testVars := t.ctx.Vars.NewScope()
8586
testVars.SetVar("scopeOwner", uint64(t.ctx.Index))
86-
t.ctx.Outputs.SetSubScope("childScope", testVars)
87+
t.ctx.Outputs.SetSubScope("childScope", vars.NewScopeFilter(testVars))
8788

8889
// add default config from external test to variable scope
8990
for k, v := range testConfig.Config {
@@ -100,7 +101,7 @@ func (t *Task) Execute(ctx context.Context) error {
100101
testConfig.ConfigVars[k] = v
101102
}
102103

103-
err = testVars.CopyVars(testVars, testConfig.ConfigVars)
104+
err = testVars.CopyVars(t.ctx.Vars, testConfig.ConfigVars)
104105
if err != nil {
105106
return fmt.Errorf("error decoding external test configVars %v: %v", t.config.TestFile, err)
106107
}

playbooks/pectra-dev/execution-spec-tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ tasks:
171171
cleanupTasks:
172172
- name: run_shell
173173
title: "Cleanup temp dir for execution spec tests"
174-
id: tempdir
175174
config:
176175
shell: bash
177176
envVars:

0 commit comments

Comments
 (0)