[CRIU] [PATCH 1/2] zdtm: desc -- Add 'env' key

Cyrill Gorcunov gorcunov at gmail.com
Sat Apr 28 12:56:39 MSK 2018


So that we can specify environment variables
in .desc files by 'env' key.

https://ci.openvz.org/view/CRIU/job/CRIU/job/CRIU-x86_64-pre-dump/job/criu-dev/3724/consoleFull
https://ci.openvz.org/view/CRIU/job/CRIU/job/CRIU-snap/job/criu-dev/3717/consoleFull

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index 3c7b5a0d2258..50109e47597d 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -370,7 +370,7 @@ flavors_codes = dict(zip(xrange(len(flavors)), sorted(flavors.keys())))
 		self.__flavor = flavor
 		self.__freezer = freezer
 		self._bins = [name]
-		self._env = {}
+		self._env = dict(x.split("=") for x in desc.get('env', '').split())
 		self._deps = desc.get('deps', [])
 		self.auto_reap = True
 		self.__timeout = int(self.__desc.get('timeout') or 30)
-- 
2.14.3



More information about the CRIU mailing list