Tests: added regex check.
This commit is contained in:
13
test/unit/check/regex.py
Normal file
13
test/unit/check/regex.py
Normal 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
|
||||
Reference in New Issue
Block a user