chiark / gitweb /
call vsp.bomb, not just bomb (!)
authorIan Jackson <ian@anarres>
Wed, 14 Feb 2007 14:41:22 +0000 (14:41 +0000)
committerIan Jackson <ian@anarres>
Wed, 14 Feb 2007 14:41:22 +0000 (14:41 +0000)
virt-subproc/adt-virt-xenlvm

index a4a1ec5032d1d38780d0b53b0ee6bdad1d8e38ee..790997772d6870cabae27c6e89aff35824b303a0 100755 (executable)
@@ -90,9 +90,9 @@ def do_open():
                withholder.stdin.close()
                withholder.stdout.close()
                withholder = None
-               bomb("with-testbed failed, code %d" % rc)
+               vsp.bomb("with-testbed failed, code %d" % rc)
        if l != "y\n":
-               bomb("with-testbed sh gave wrong output `%s', not `l'"
+               vsp.bomb("with-testbed sh gave wrong output `%s', not `l'"
                        % l.rstrip("\n"))
        vsp.execute('mkdir %s' % downtmp, downp=True)   
 
@@ -103,7 +103,8 @@ def do_close():
        withholder.stdout.close()
        rc = withholder.wait()
        withholder = None
-       if rc: bomb("with-testbed failed when closing/resetting, code %d" % rc)
+       if rc: vsp.bomb("with-testbed failed when closing/resetting,"
+                       " code %d" % rc)
 
 def hook_forked_inchild():
        if withholder is not None: