Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/assert file owner requires sudo #38

Conversation

leventyalcin
Copy link

@leventyalcin leventyalcin commented May 27, 2021

This PR solves the problem mentioned in #37 and #27

(fixes #37, fixes #27)

@leventyalcin
Copy link
Author

I'll come back to this as there is no way to test changes locally and there is a learning curve to figure out bits and bobs with Travis.

@leventyalcin
Copy link
Author

While I decided to leave I found out I was using the wrong var name. Fixed it. However, again, I'll leave it to later as it fails something completely different and hard to figure/test etc.

[*] No ancient back-ticks (see shellcheck for instance)
[*] No code block duplication
@martin-schulze-vireso martin-schulze-vireso force-pushed the fix/assert_file_owner_requires_sudo branch from d650dc5 to fdd71e8 Compare March 5, 2022 13:24
@martin-schulze-vireso
Copy link
Member

martin-schulze-vireso commented Mar 5, 2022

I rebased this on master and removed the changes that duplicated my work in getting the unrelated tests green again. (I noticed too late that you did the same work.)

### Why?

- Why Vagrant, not Docker
- This replicates the 100% CI

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not hold anymore, since the CI is now migrated to GHA which offers only ubuntu. In the long run, I'd like to beef the CI up to test more of the OS fleet (Linux, MacOS, BSD, Windows, ...) as has been done with bats-core.

@martin-schulze-vireso martin-schulze-vireso merged commit bb53897 into bats-core:master Mar 6, 2022
@martin-schulze-vireso
Copy link
Member

Thanks for your PR.

gioele added a commit to gioele/bats-file that referenced this pull request Oct 23, 2022
…owner`

Change the code of `assert_not_file_owner` to the version of
`assert_file_owner` introduced in PR bats-core#38.

The removal of the stray sudo calls fixes issue bats-core#49.
martin-schulze-vireso pushed a commit to gioele/bats-file that referenced this pull request Jan 8, 2023
…owner`

Change the code of `assert_not_file_owner` to the version of
`assert_file_owner` introduced in PR bats-core#38.

The removal of the stray sudo calls fixes issue bats-core#49.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sudo required by assert_file_owner? assert_file_owner, assert_no_file_owner /dir/owner
2 participants