summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-02-07 16:19:13 +0000
committerandrey-zelenkov <xim.andrew@gmail.com>2024-02-21 17:40:25 +0000
commit7883acc62df64023dc8900298d65218b96d36ec7 (patch)
tree85df0c4ee54a9c9f9f5a97e20b960d01fd867b20
parent4c558697bb7375aaca01314dd3667df923d32bfb (diff)
downloadunit-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)
-rw-r--r--test/test_ruby_hooks.py5
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()