summaryrefslogtreecommitdiffhomepage
path: root/test/unit/check/isolation.py
diff options
context:
space:
mode:
authorOisin Canty <o.canty@f5.com>2021-07-02 13:00:04 +0000
committerOisin Canty <o.canty@f5.com>2021-07-02 13:00:04 +0000
commit6c14d5d7b1921bd78f2d1b7458eae7d97eee0fcd (patch)
tree371aa339095bc5f5d50629f96bdd768e1424bfe1 /test/unit/check/isolation.py
parent655e321075c0beebe14eba83deeac1ba4c9e0b29 (diff)
downloadunit-6c14d5d7b1921bd78f2d1b7458eae7d97eee0fcd.tar.gz
unit-6c14d5d7b1921bd78f2d1b7458eae7d97eee0fcd.tar.bz2
Tests: run Ruby applications inside temporary directory.
Diffstat (limited to 'test/unit/check/isolation.py')
-rw-r--r--test/unit/check/isolation.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/check/isolation.py b/test/unit/check/isolation.py
index 7c83ae35..43c8842f 100644
--- a/test/unit/check/isolation.py
+++ b/test/unit/check/isolation.py
@@ -3,6 +3,7 @@ import os
from unit.applications.lang.go import TestApplicationGo
from unit.applications.lang.java import TestApplicationJava
+from unit.applications.lang.ruby import TestApplicationRuby
from unit.applications.lang.node import TestApplicationNode
from unit.applications.proto import TestApplicationProto
from unit.http import TestHTTP
@@ -65,14 +66,16 @@ def check_isolation():
}
elif 'ruby' in available['modules']:
+ TestApplicationRuby().prepare_env('empty')
+
conf = {
"listeners": {"*:7080": {"pass": "applications/empty"}},
"applications": {
"empty": {
"type": "ruby",
"processes": {"spare": 0},
- "working_directory": option.test_dir + "/ruby/empty",
- "script": option.test_dir + "/ruby/empty/config.ru",
+ "working_directory": option.temp_dir + "/ruby/empty",
+ "script": option.temp_dir + "/ruby/empty/config.ru",
"isolation": {"namespaces": {"credential": True}},
}
},