From: Ian Jackson Date: Fri, 29 Jul 2011 14:36:57 +0000 (+0100) Subject: virt-subproc: add testbed open check to `execute' and `copyup'/`copydown' X-Git-Tag: debian/2.0.0~23 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=b700774583da290c8c00ac3b554cf0b0b168cd38;p=autopkgtest.git virt-subproc: add testbed open check to `execute' and `copyup'/`copydown' --- 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