xref: /unit/test/unit/check/regex.py (revision 1807:858dbd8c0894)
1import re
2import subprocess
3
4
5def check_regex(unitd):
6    output = subprocess.check_output(
7        [unitd, '--version'], stderr=subprocess.STDOUT
8    )
9
10    if re.search('--no-regex', output.decode()):
11        return False
12
13    return True
14