forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use runuser instead of sudo for test-suite user changes
We don't need or want any of the sudo fanciness and privilege elevation here: we're already root inside the container and just want to run things as a different user. runuser is more than adequate for this purpose. One such peculiarity is that apparently sudo re-expands its command, so \$PWD got evaluated to the PWD of the new shell. runuser does no such thing, but we can just as well hardcode a directory, $PWD is nothing special in this case. Consolidate the lone runuser rpmdb export test to use runroot_user too now that it can.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters