From 70c2ffc39677a9f5eb6b2230cb9ca2606b2fd966 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 13 Apr 2009 19:10:10 +0100 Subject: Additional test programs for Perl, Python, OCaml bindings. --- python/t/010-launch.py | 3 +++ python/t/050-lvcreate.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/t/010-launch.py b/python/t/010-launch.py index c2bdd1d0..1cba3221 100644 --- a/python/t/010-launch.py +++ b/python/t/010-launch.py @@ -15,6 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +import os import guestfs g = guestfs.guestfs() @@ -24,3 +25,5 @@ f.close () g.add_drive ("test.img") g.launch () g.wait_ready () + +os.unlink ("test.img") diff --git a/python/t/050-lvcreate.py b/python/t/050-lvcreate.py index 98227e23..444cee90 100644 --- a/python/t/050-lvcreate.py +++ b/python/t/050-lvcreate.py @@ -15,6 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +import os import guestfs g = guestfs.guestfs() @@ -33,5 +34,4 @@ if (g.lvs () != ["/dev/VG/LV1", "/dev/VG/LV2"]): g.sync () del g -import os os.unlink ("test.img") -- cgit