search for: test_rhbz1406906

Displaying 4 results from an estimated 4 matches for "test_rhbz1406906".

2017 May 06
5
[Bug 1406906] [PATCH 0/3] Fix segmentation fault in Python bindings
This series addresses the issue where non UTF8 file names in a guest image lead to libguestfs segfault with Python 3 APIs. The core issue is the APIs are not checking the return value when constructing a new PyObject. Therefore NULL pointers are added to Python collections (lists and dictionaries) crashing the application. Few notes regarding the comments on the previous patch. - Added a
2017 May 06
0
[Bug 1406906] [PATCH 3/3] python: add regression test for RHBZ#1406906
...self.guestfs.disk_create(self.filename, "raw", 512 * 1024 * 1024) + self.guestfs.add_drive(self.filename) + self.guestfs.launch() + + def tearDown(self): + self.guestfs.close() + os.unlink(self.filename) + shutil.rmtree(self.tempdir) + + def test_rhbz1406906(self): + self.guestfs.part_disk("/dev/sda", "mbr") + self.guestfs.mkfs("ext3", "/dev/sda1", blocksize=1024) + self.guestfs.mount("/dev/sda1", "/") + + # touch file with illegal unicode character + open(os...
2017 May 09
1
[PATCH] RHBZ#1406906: check return value of Python object functions
...A 02110-1301 USA. + +import os +import sys +import shutil +import tempfile +import unittest + +import guestfs + + +class Test830RHBZ1406906(unittest.TestCase): + def setUp(self): + self.tempdir = tempfile.mkdtemp() + + def tearDown(self): + shutil.rmtree(self.tempdir) + + def test_rhbz1406906(self): + g = guestfs.GuestFS(python_return_dict=True) + + g.add_drive_scratch(512 * 1024 * 1024) + g.launch() + + g.part_disk("/dev/sda", "mbr") + g.mkfs("ext4", "/dev/sda1") + g.mount("/dev/sda1", "/&q...
2017 May 11
1
[PATCH v2] RHBZ#1406906: check return value of Python object functions
...A 02110-1301 USA. + +import os +import sys +import shutil +import tempfile +import unittest + +import guestfs + + +class Test830RHBZ1406906(unittest.TestCase): + def setUp(self): + self.tempdir = tempfile.mkdtemp() + + def tearDown(self): + shutil.rmtree(self.tempdir) + + def test_rhbz1406906(self): + g = guestfs.GuestFS(python_return_dict=True) + + g.add_drive_scratch(512 * 1024 * 1024) + g.launch() + + g.part_disk("/dev/sda", "mbr") + g.mkfs("ext4", "/dev/sda1") + g.mount("/dev/sda1", "/&q...