Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.15](backport #27178) libbeat/cmd/instance: ensure test config file…
… has appropriate permissions (#27797) * libbeat/cmd/instance: ensure test config file has appropriate permissions (#27178) Git does not store r/w permissions, instead depending on the host system's umask. On some systems the default umask is 0o002, meaning that the test config file is checked out with g+w permission, causing the test to fail. This change ensures that the test config is owner-exclusive write before running the test. It also adds checks to currently ineffective error assignments. (cherry picked from commit 627b7a8) # Conflicts: # libbeat/cmd/instance/beat_test.go * libbeat/cmd/instance: resolve backport conflict Co-authored-by: Dan Kortschak <dan@kortschak.io> Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
- Loading branch information