diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2022-11-15 00:39:21 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2022-11-15 00:39:21 +0000 |
commit | 0d3b31e6710afe4348eb25f1602f5271c92b9a77 (patch) | |
tree | 6383fcfa881635a62a2713c2c3b3a98d95a23153 /test/unit/check/regex.py | |
parent | 40d75c94a039f35505975736bb4f907ec456c9bd (diff) | |
download | unit-0d3b31e6710afe4348eb25f1602f5271c92b9a77.tar.gz unit-0d3b31e6710afe4348eb25f1602f5271c92b9a77.tar.bz2 |
Tests: features and options checks improved.
Now version output evaluates only once.
OpenSSL checks more carefully.
Diffstat (limited to '')
-rw-r--r-- | test/unit/check/regex.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/unit/check/regex.py b/test/unit/check/regex.py index 734c0150..51cf966b 100644 --- a/test/unit/check/regex.py +++ b/test/unit/check/regex.py @@ -1,13 +1,8 @@ import re -import subprocess -def check_regex(unitd): - output = subprocess.check_output( - [unitd, '--version'], stderr=subprocess.STDOUT - ) - - if re.search('--no-regex', output.decode()): +def check_regex(output_version): + if re.search('--no-regex', output_version): return False return True |