[Devel,1/2] vz7: zdtm -- Export ZDTM_RUN variable

Submitted by Cyrill Gorcunov on Feb. 20, 2017, 5:49 p.m.

Details

Message ID 1487612990-22791-2-git-send-email-gorcunov@virtuozzo.com
State New
Series "vz7: Prepare to run under zdtm test"
Headers show

Commit Message

Cyrill Gorcunov Feb. 20, 2017, 5:49 p.m.
So in criu we can detect it and don't do
ve specific actions when running tests.

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

Patch hide | download patch | download mbox

diff --git a/test/zdtm.py b/test/zdtm.py
index a661242..00b7014 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -990,6 +990,7 @@  def cr(cr_api, test, opts):
 	if opts['nocr']:
 		return
 
+	os.environ["ZDTM_RUN"] = "y"
 	cr_api.set_test(test)
 
 	iters = iter_parm(opts['iters'], 1)

Comments

Kirill Gorkunov Feb. 20, 2017, 6:43 p.m.
On Mon, Feb 20, 2017 at 08:49:49PM +0300, Cyrill Gorcunov wrote:
> So in criu we can detect it and don't do
> ve specific actions when running tests.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>

Seems this env is not seen in ns tests. Hmm...