Skip to content

Commit

Permalink
fix: gnovm testdir name
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Nov 7, 2024
1 parent e8e9b41 commit 9cdaac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gnovm/cmd/gno/testdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func Test_Scripts(t *testing.T) {
name := dir.Name()
t.Logf("testing: %s", name)
t.Run(name, func(t *testing.T) {
p := integration.NewTestingParams(t, name)
testdir := filepath.Join(testdata, name)
p := integration.NewTestingParams(t, testdir)
if coverdir, ok := integration.ResolveCoverageDir(); ok {
err := integration.SetupTestscriptsCoverage(&p, coverdir)
require.NoError(t, err)
Expand Down
4 changes: 2 additions & 2 deletions gnovm/pkg/integration/testscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
)

// NewTestingParams setup and initialize base params for testing.
func NewTestingParams(t *testing.T, datadir string) testscript.Params {
func NewTestingParams(t *testing.T, testdir string) testscript.Params {
t.Helper()

var params testscript.Params
params.Dir = datadir
params.Dir = testdir

params.UpdateScripts, _ = strconv.ParseBool(os.Getenv("UPDATE_SCRIPTS"))
params.TestWork, _ = strconv.ParseBool(os.Getenv("TESTWORK"))
Expand Down

0 comments on commit 9cdaac3

Please sign in to comment.