Merge pull request #134 from Salamandar/patch-1

Fix nginx test
This commit is contained in:
Kayou 2024-02-26 10:11:09 +01:00 committed by GitHub
commit 7808953343
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1447,7 +1447,7 @@ class Configurations(TestSuite):
cmd = 'grep -q -IhEro "location ~ __PATH__" %s' % (app.path + "/conf/" + filename)
if os.system(cmd) != 0:
if os.system(cmd) == 0:
yield Info(
"When using regexp in the nginx location field (location ~ __PATH__), start the path with ^ (location ~ ^__PATH__)."
)