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:
parent
b85d6ec434
commit
06d843d3b0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue