support/testing: add sudo package test
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 5 May 2021 19:13:44 +0000 (21:13 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 10 May 2021 20:08:15 +0000 (22:08 +0200)
commit74bae64dc5955bc9d14e8c6ac8c6b189e82ccc47
treedfae25256028aef6c151de48a118285f10792425
parentb5fcb602beb0d4fc6b12200bed11dd386bf4dcdd
support/testing: add sudo package test

Create a new user 'sudotest' to validate that sudo really works (i.e.
properly has setuid).

Creating the user and adding it to sudoers is done at runtime, otherwise
we'd need to add extra files to the config which complicates things a
little bit.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/testing/tests/package/test_sudo.py [new file with mode: 0644]