X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=virt-subproc%2Fadt-virt-schroot;h=afcd68a466973de28cfff06d538f258e4d34e9d1;hb=ea6938f46739198bf912a4f06366bc1cac97fe4a;hp=b75f59d4b127d49f472a0302c643ee43bfe73db1;hpb=0d82094807a3e56570c41993a4749779acf7d6f6;p=autopkgtest.git 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)