Tests: added regex check.

This commit is contained in:
Andrei Zeliankou
2021-02-18 21:21:55 +00:00
parent ecd0fc5d81
commit af3b6ef37d
3 changed files with 27 additions and 0 deletions

13
test/unit/check/regex.py Normal file
View File

@@ -0,0 +1,13 @@
import re
import subprocess
def check_regex(unitd):
output = subprocess.check_output(
[unitd, '--version'], stderr=subprocess.STDOUT
)
if re.search('--no-regex', output.decode()):
return False
return True