From c986bf8ff5aaf3962a63fcd54ee5074ee1835d8f Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Wed, 16 Dec 2020 20:31:00 -0500 Subject: [PATCH] config: Skip homepage test on buildd (Closes: #977527) Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/config/tests/test_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plinth/modules/config/tests/test_config.py b/plinth/modules/config/tests/test_config.py index 18dcca1d2..850d10575 100644 --- a/plinth/modules/config/tests/test_config.py +++ b/plinth/modules/config/tests/test_config.py @@ -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