ReproNim / neurodocker

Generate custom Docker and Singularity images, and minimize existing containers
https://www.repronim.org/neurodocker/
Apache License 2.0
327 stars 97 forks source link

Do not attempt to use sudo if would demand password #629

Open yarikoptic opened 3 months ago

yarikoptic commented 3 months ago

ATM

neurodocker/cli/tests/test_build_images_with_cli.py::test_build_image_from_registered[apt-debian:buster-slim-singularity] [sudo] password for yoh: 

Sorry, try again.
[sudo] password for yoh: 

Sorry, try again.
[sudo] password for yoh: 

sudo: 3 incorrect password attempts
FAILED

In datalad we use with -n which is for non interactive: https://github.com/datalad/datalad/blob/HEAD/datalad/support/tests/test_annexrepo.py#L2498 . Then skip if execution non-interactively fails.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.