From af3b6ef37d0d8d4d9e27d77a750419d96e0119bc Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 18 Feb 2021 21:21:55 +0000 Subject: Tests: added regex check. --- test/unit/check/regex.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/unit/check/regex.py (limited to 'test/unit/check') diff --git a/test/unit/check/regex.py b/test/unit/check/regex.py new file mode 100644 index 00000000..734c0150 --- /dev/null +++ b/test/unit/check/regex.py @@ -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 -- cgit