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

Submitted by Cyrill Gorcunov on April 28, 2018, 9:56 a.m.

Details

Message ID 20180428095640.6460-2-gorcunov@gmail.com
State New
Series "zdtm: Add 'env' key"
Headers show

Commit Message

Cyrill Gorcunov April 28, 2018, 9:56 a.m.
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@gmail.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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)