Fix: black error on pre-commit
This commit is contained in:
parent
63fc1ffd0e
commit
14a8f2b477
2 changed files with 5 additions and 2 deletions
1
Makefile
1
Makefile
|
|
@ -8,6 +8,7 @@ test:
|
|||
|
||||
fmt:
|
||||
black erminig tests
|
||||
git add erminig tests
|
||||
|
||||
docker-build:
|
||||
podman-compose -f docker-compose.yml build
|
||||
|
|
|
|||
|
|
@ -41,7 +41,9 @@ def run_as_user(username):
|
|||
if pid > 0:
|
||||
# Parent : attendre le child, ne pas exit, juste return proprement
|
||||
_, status = os.waitpid(pid, 0)
|
||||
return status >> 8 # récupère le code retour du fils (comme exit code)
|
||||
return (
|
||||
status >> 8
|
||||
) # récupère le code retour du fils (comme exit code)
|
||||
|
||||
# Child
|
||||
pw_record = pwd.getpwnam(username)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue