Comment 4 for bug 1837090

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

NOTE:

ulimit -H -l unlimited 2>/dev/null || {
    # https://bugs.launchpad.net/bugs/1828228
    echo "test disabled for unprivileged namespaces"
    exit 77
}

This is the test we are using to check if autopkgtest is running in an unprivileged container (as root, with "needs_root" work in debian/tests/control. Since this is the 3rd package already we have to do this test, and SKIP the test if needed, it would be good to have a way to skip test by a keyword in control file, like "no-unpriv-container" or something like it.