From c7bf1bb46f5d8a1b455cf7f40980b1e0b5bd69cc Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 19 Jul 2020 10:26:01 -0400 Subject: [PATCH] tests: functional: Strip trailing / from FREEDOMBOX_URL Some web app tests combine the configured URL with expected paths. Avoid failing these tests when there is a trailing slash at the end of the URL. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/tests/functional/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 2886b418c..61e208dbf 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -21,7 +21,7 @@ config = configparser.ConfigParser() config.read(pathlib.Path(__file__).with_name('config.ini')) config['DEFAULT']['url'] = os.environ.get('FREEDOMBOX_URL', - config['DEFAULT']['url']) + config['DEFAULT']['url']).rstrip('/') config['DEFAULT']['samba_port'] = os.environ.get( 'FREEDOMBOX_SAMBA_PORT', config['DEFAULT']['samba_port'])