From 1e06b8146fa4864af69eebee88e639e07d636e43 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 23 Jul 2024 19:57:19 +0200 Subject: [PATCH] Remove old test designed for packaging v1 era --- package_linter.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/package_linter.py b/package_linter.py index 0410efb..64abd07 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1139,22 +1139,6 @@ class App(TestSuite): ): yield Error("Don't do black magic with /etc/ssowat/conf.json.persistent!") - @test() - def bad_final_path_location(self): - if ( - os.system( - f"grep -q -nr 'ynh_webpath_register' {self.path}/scripts/install 2>/dev/null" - ) - == 0 - and os.system( - f"grep -q -nr 'final_path=/opt' {self.path}/scripts/install {self.path}/scripts/_common.sh 2>/dev/null" - ) - == 0 - ): - yield Info( - "Web applications are not supposed to be installed in /opt/ ... They are supposed to be installed in /var/www/$app :/" - ) - @test() def app_data_in_unofficial_dir(self):