chiark
/
gitweb
/
~ianmdlvl
/
autopkgtest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b09861e
)
virt-subproc: add testbed open check to `execute' and `copyup'/`copydown'
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 29 Jul 2011 14:36:57 +0000
(15:36 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 29 Jul 2011 14:36:57 +0000
(15:36 +0100)
lib/VirtSubproc.py
patch
|
blob
|
history
diff --git
a/lib/VirtSubproc.py
b/lib/VirtSubproc.py
index 13d934bb76bcd0781300f98cc3f7d370626dc424..5d991d885d87ab10ec7868c27f721bdf9d522f9c 100644
(file)
--- 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)
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
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)
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
isrc = 0
idst = 1
ilocal = 0 + upp