File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ def __init__(self, path):
493
493
self .path = path
494
494
self .manifest_ = Manifest (self .path )
495
495
self .manifest = self .manifest_ .manifest
496
- self .scripts = {f : Script (self .path , f ) for f in scriptnames }
496
+ self .scripts = {f : Script (self .path , f , self . manifest . get ( "id" ) ) for f in scriptnames }
497
497
self .configurations = Configurations (self )
498
498
self .app_catalog = AppCatalog (self .manifest ["id" ])
499
499
@@ -2262,9 +2262,10 @@ def good_quality(infos):
2262
2262
# |_| #
2263
2263
##################################
2264
2264
class Script (TestSuite ):
2265
- def __init__ (self , app_path , name ):
2265
+ def __init__ (self , app_path , name , app_id ):
2266
2266
self .name = name
2267
2267
self .app_path = app_path
2268
+ self .app_id = app_id
2268
2269
self .path = app_path + "/scripts/" + name
2269
2270
self .exists = file_exists (self .path )
2270
2271
if not self .exists :
@@ -2689,6 +2690,11 @@ def sudo(self):
2689
2690
2690
2691
@test ()
2691
2692
def chownroot (self ):
2693
+
2694
+ # Mywebapp has a legit use case for this >_>
2695
+ if self .app_id == "my_webapp" :
2696
+ return
2697
+
2692
2698
if self .containsregex (
2693
2699
r"^\s*chown.* root:?[^$]* .*install_dir"
2694
2700
) and not self .contains ('chown root:root "$install_dir"' ):
You can’t perform that action at this time.
0 commit comments