Merge pull request #129 from oleole39/patch-1

Fix regex in helpers_sourcing_after_official()
This commit is contained in:
Kayou 2024-02-20 07:47:42 +01:00 committed by GitHub
commit 856d7a957c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2797,7 +2797,7 @@ class Script(TestSuite):
@test() @test()
def helpers_sourcing_after_official(self): def helpers_sourcing_after_official(self):
helpers_after_official = subprocess.check_output( helpers_after_official = subprocess.check_output(
"head -n 30 '%s' | grep -A 10 '^ *source */usr/share/yunohost/helpers' | grep '^ *source' | tail -n +2" "head -n 30 '%s' | grep -A 10 '^ *source */usr/share/yunohost/helpers' | grep '^ *source ' | tail -n +2"
% self.path, % self.path,
shell=True, shell=True,
).decode("utf-8") ).decode("utf-8")