testgres icon indicating copy to clipboard operation
testgres copied to clipboard

Change method for getting default user name, some sudo versions unexcepted working with getpass

Open AndrewBille opened this issue 3 years ago • 1 comments

For example sudo version 1.8.25p1: [root@centos-8 ~]# sudo -u test sh -c 'python3 -c "import getpass; print(getpass.getuser())"'; root [root@centos-8 ~]# sudo -u test sh -c 'python3 -c "import os; print(os.getlogin())"'; test

AndrewBille avatar Sep 12 '22 05:09 AndrewBille

Codecov Report

Merging #67 (468b877) into master (4024049) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #67   +/-   ##
=======================================
  Coverage   95.93%   95.93%           
=======================================
  Files          18       18           
  Lines        1674     1674           
=======================================
  Hits         1606     1606           
  Misses         68       68           
Impacted Files Coverage Δ
testgres/defaults.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Sep 12 '22 10:09 codecov[bot]