summaryrefslogtreecommitdiffstats
path: root/tests/mock/disk.py
Commit message (Collapse)AuthorAgeFilesLines
* Copy /etc/multipath/wwids to the sysimage.Ales Kozumplik2011-08-161-1/+1
| | | | | | | | | | | | /etc/multipath/wwids is a list of activated multipaths generated by the multipath tools. If it is missing in the sysimage it will be missing in the dracut initramfs and that, in rare cases, can cause race between mpath and lvm during boot. This is a merge froh rhel6-branch but includes a unit tests of the new iutil.copy_to_sysimage(). Resolves: rhbz#701371
* We also need to catch ValueError on mock.disk.TestFile.__del__.Chris Lumens2011-08-011-1/+1
|
* ut: cleanup the taking-over-io mechanism.Ales Kozumplik2011-07-271-28/+1
| | | | | | 1) Move the functionality from mock.DiskIO to mock.TestCase itself. 2) Use already existing mechanism (tearDownModules()) for cleaning up after we override functions in widely used modules.
* edd: do not traceback when can not find the respective pci device.Ales Kozumplik2011-07-261-0/+9
| | | | Resolves: rhbz#723344
* unit tests: provide 'glob.glob' and 'os.listdir' in the DiskIO class.Ales Kozumplik2011-07-041-9/+39
| | | | | | | | | Not a production code change. Just like the existing DiskIO, it is sufficient for the basic cases but breaks for more advanced ones. Related: rhbz#621175
* Fix open method in mock/disk.py.Tomas Mlcoch2011-02-141-6/+11
| | | | Now is possible open empty file with mode 'a'
* Improve of mock/disk.py.Tomas Mlcoch2011-02-141-1/+16
| | | | | | | | Add __enter__() and __exit__() methods into TestFile class. Rename "IO" to "TestFile". Add destructor to TestFile and fix open mode "w". Add destructor to TestFile and fix open for write. Catch useless exception.
* Improve module cleanup in our TestCase class and fix issues in FS mock class.Martin Sivak2010-05-201-2/+9
|
* Add Mock classesMartin Sivak2010-05-141-0/+89