Commit c1f67fe1 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

Remove guestfs

parent a0d9eff7
......@@ -73,7 +73,6 @@ INSTALL_REQUIRES = [
"kamaki >= 0.6.2"]
......@@ -49,7 +49,6 @@ import socket
import sys
import time
import tempfile
import guestfs
from base64 import b64encode
from IPy import IP
from multiprocessing import Process, Queue
......@@ -279,20 +278,6 @@ class ImagesTestCase(unittest.TestCase):
with open(temp_file, "wb+") as f:
pithos_client.download_object(image_location[3], f)"Mount downloaded image and inject personality file")
# XXX: The image is shrinked to the size of the
# underlying device. To avoid increasing it's size
# delete the `.aptitude' directory.
g = guestfs.GuestFS()
g.add_drive_opts(temp_file, format="raw", readonly=0)
partitions = g.list_partitions()
g.mount(partitions[0], "/")
g.write("/root/temp.txt", "This is a personality file.")
def test_007_upload_image(self):
"""Upload and register image"""
temp_file = os.path.join(self.temp_dir, self.temp_image_name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment