From b700774583da290c8c00ac3b554cf0b0b168cd38 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 29 Jul 2011 15:36:57 +0100 Subject: [PATCH] virt-subproc: add testbed open check to `execute' and `copyup'/`copydown' --- lib/VirtSubproc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/VirtSubproc.py b/lib/VirtSubproc.py index 13d934b..5d991d8 100644 --- a/lib/VirtSubproc.py +++ b/lib/VirtSubproc.py @@ -185,6 +185,7 @@ def cmd_revert(c, ce): def cmd_execute(c, ce): cmdnumargs(c, ce, 5, None) + if not downtmp: bomb("`execute' when not open" % which) debug_re = regexp.compile('debug=(\d+)\-(\d+)$') debug_g = None timeout = 0 @@ -251,6 +252,7 @@ def cmd_execute(c, ce): def copyupdown(c, ce, upp): cmdnumargs(c, ce, 2) + if not downtmp: bomb("`copyup'/`copydown' when not open" % which) isrc = 0 idst = 1 ilocal = 0 + upp -- 2.30.2