mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests/fprintd: Skip some tests in CI depending on permissions
This commit is contained in:
committed by
Bastien Nocera
parent
3dd10b4b37
commit
08339a0648
@ -653,11 +653,15 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
|
||||
self.assertFalse(os.path.exists(os.path.join(self.state_dir, 'testuser/virtual_image/0/7')))
|
||||
|
||||
def test_enroll_invalid_storage_dir(self):
|
||||
if 'CI_PROJECT_NAME' in os.environ:
|
||||
self.skipTest('Permissions aren\'t respected in CI environment')
|
||||
os.makedirs(self.state_dir, mode=0o500)
|
||||
self.addCleanup(os.chmod, self.state_dir, mode=0o700)
|
||||
self.enroll_image('whorl', expected_result='enroll-failed')
|
||||
|
||||
def test_verify_invalid_storage_dir(self):
|
||||
if 'CI_PROJECT_NAME' in os.environ:
|
||||
self.skipTest('Permissions aren\'t respected in CI environment')
|
||||
self.enroll_image('whorl')
|
||||
os.chmod(self.state_dir, mode=0o000)
|
||||
self.addCleanup(os.chmod, self.state_dir, mode=0o700)
|
||||
|
||||
Reference in New Issue
Block a user