chiark / gitweb /
rename "reset" testbed command to "revert"
[autopkgtest.git] / virt-subproc / VirtSubproc.py
index 68fc8c32692d4668a0c160ea8f65bef2611150b1..2c5e4f697df6367af3651d0db627d421ac358619 100644 (file)
@@ -107,12 +107,12 @@ def cmd_open(c, ce):
        downtmp = caller.hook_open()
        return [downtmp]
 
-def cmd_reset(c, ce):
+def cmd_revert(c, ce):
        cmdnumargs(c, ce)
-       if not downtmp: bomb("`reset' when not open")
+       if not downtmp: bomb("`revert' when not open")
        if not 'revert' in caller.hook_capabilities():
-               bomb("`reset' when `revert' not advertised")
-       caller.hook_reset()
+               bomb("`revert' when `revert' not advertised")
+       caller.hook_revert()
 
 def down_python_script(gobody, functions=''):
        # Many things are made much harder by the inability of