Skip to content

Commit d14f0b4

Browse files
justinfxsbinet
authored andcommitted
test: fix location of temp test file output
Fixes a bug in a test which sets a custom testdir, not being joined to the proper temp workdir refs go-plugin/gopy#245
1 parent 8ab2cac commit d14f0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ func testPkgBackend(t *testing.T, pyvm string, table pkg) {
972972
tstDir = filepath.Join(workdir, pkgNm)
973973
}
974974
if table.testdir != "" {
975-
tstDir = table.testdir
975+
tstDir = filepath.Join(workdir, table.testdir)
976976
}
977977
tstSrc := filepath.Join(filepath.Join(cwd, table.path), "test.py")
978978
tstDst := filepath.Join(tstDir, "test.py")

0 commit comments

Comments
 (0)