From: Ian Jackson Date: Tue, 26 Jul 2011 12:34:11 +0000 (+0100) Subject: adt-virt-schroot: actually implement revert X-Git-Tag: debian/2.0.0~34 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ea6938f46739198bf912a4f06366bc1cac97fe4a;p=autopkgtest.git adt-virt-schroot: actually implement revert --- diff --git a/virt-subproc/adt-virt-schroot b/virt-subproc/adt-virt-schroot index b75f59d..afcd68a 100755 --- a/virt-subproc/adt-virt-schroot +++ b/virt-subproc/adt-virt-schroot @@ -85,6 +85,10 @@ def hook_open(): vsp.down += ['--','sh','-c'] return None +def hook_revert(): + hook_cleanup() + hook_open() + def hook_cleanup(): global schroot, sessid, downtmp vsp.execute('schroot -e -c',[sessid], downp=False)