Don't allow write perms to plugins in test (#17439)

We are specifically checking that the writes are now allowed for group
and other.

I don't know how this test was passing on non-arm64 platforms,
but hopefully this should fix it.
This commit is contained in:
Christopher Swenson 2022-10-06 10:09:27 -07:00 committed by GitHub
parent b85d6ec434
commit 06d843d3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ func compilePlugin(t *testing.T, typ consts.PluginType, pluginVersion string, pl
// write the cached plugin if necessary // write the cached plugin if necessary
var err error var err error
if _, err := os.Stat(pluginPath); os.IsNotExist(err) { if _, err := os.Stat(pluginPath); os.IsNotExist(err) {
err = os.WriteFile(pluginPath, pluginBytes, 0o777) err = os.WriteFile(pluginPath, pluginBytes, 0o755)
} }
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)