diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2024-02-07 16:19:13 +0000 |
---|---|---|
committer | andrey-zelenkov <xim.andrew@gmail.com> | 2024-02-21 17:40:25 +0000 |
commit | 7883acc62df64023dc8900298d65218b96d36ec7 (patch) | |
tree | 85df0c4ee54a9c9f9f5a97e20b960d01fd867b20 /test | |
parent | 4c558697bb7375aaca01314dd3667df923d32bfb (diff) | |
download | unit-7883acc62df64023dc8900298d65218b96d36ec7.tar.gz unit-7883acc62df64023dc8900298d65218b96d36ec7.tar.bz2 |
Tests: Ruby hook tests unstable for version older 3.0
It can fail with reporting following alert:
[alert] 137462#137462 mount("none", "/tmp/unit-test-636e0uh8/proc", "proc", 2097162, "") (16: Device or resource busy)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ruby_hooks.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_ruby_hooks.py b/test/test_ruby_hooks.py index 38893e47..dd9e0fca 100644 --- a/test/test_ruby_hooks.py +++ b/test/test_ruby_hooks.py @@ -1,8 +1,11 @@ from unit.applications.lang.ruby import ApplicationRuby from unit.option import option from unit.utils import waitforglob +from packaging import version -prerequisites = {'modules': {'ruby': 'all'}} +prerequisites = { + 'modules': {'ruby': lambda v: version.parse(v) >= version.parse('3.0')} +} client = ApplicationRuby() |