config: Skip homepage test on buildd (Closes: #977527)

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2020-12-16 20:31:00 -05:00 committed by Sunil Mohan Adapa
parent 925903e72b
commit c986bf8ff5
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -103,7 +103,11 @@ def test_homepage_mapping_skip_ci():
pytest.skip(reason)
f = _home_page_scid2url
os.mkdir(UWS_DIRECTORY)
try:
os.mkdir(UWS_DIRECTORY)
except FileNotFoundError:
pytest.skip('Home folder cannot be accessed on buildd.')
assert '/~fbx/' == f('uws-fbx')
os.rmdir(UWS_DIRECTORY)
assert f('uws-fbx') is None