Bruno, the test-idpriv-droptemp.sh and test-idpriv-drop.sh scripts call sudo/su which typically hangs querying for a password. This breaks build robots that run the job in the background. How about making these conditional on whether the user running the self-test is root? Or see the approach used by GNU Coreutils for self-tests that requires root abilities.
/Simon