Commit Graph

21 Commits

Author SHA1 Message Date
Marcus Schäfer
6cc0b2085d Flake cleanup for unit tests 2017-03-07 13:03:10 +01:00
David Cassany
7b4eca3e61 No need to mock Path.which
There is no need to mock Path.which as isoinfo binary from the
platform is needed to run the test, so better let the system look
for it, note that the binray can be located in the alternate
location (/usr/lib/genisoimage/) which is not part of the PATH.
In that particular case the iso_test would fail if we mock
Path.which.
2016-11-09 11:17:33 +01:00
Marcus Schäfer
b828f21850
Fixed hybrid setup for large ISO images
The isohybrid tool uses fseek() to locate the bootloader files.
That's unfortunately not 64-bit safe. In case of an ISO image
bigger than 4G this leads to 32-bit offset issues. kiwi can
workaround this problem by putting the bootloader files near
the top of the iso image, which is done by a change in the
sortfile of this commit
2016-09-30 10:26:11 +02:00
Marcus Schäfer
f1e7984a82
Fixup Command.run if called with raise_on_error set to False 2016-08-10 21:25:04 +02:00
Marcus Schäfer
92899c2064
Implement Path.which
Python provides methods to do this but we can't rely on them
to be available in all python versions
2016-07-07 11:32:47 +02:00
Bo Maryniuk
80900e46c5 Bring byte strings to Py2 compatibility in ISO 2016-06-08 11:46:36 +02:00
Bo Maryniuk
06b95b727d Replace 'builtins.open' with patch_open decorator 2016-06-07 17:54:24 +02:00
Marcus Schäfer
400468a455 Cleanup use of temporary directories
All mkdtemp created directories are created with the 'kiwi_'
prefix. In addition all code parts which leaves tmpdirs in
the system after kiwi is done were fixed
2016-05-04 11:05:03 +02:00
Marcus Schäfer
faf862fa41
Allow alternative if isolinux-config failed
If the setup of the base directory failed because
isolinux-config was not able to identify the isolinux.bin
signature, we create a compat /isolinux directory and
hardlink all loader files
2016-04-27 11:08:13 +02:00
Marcus Schäfer
91afaad923
Be more flexible for isoinfo lookup
isoinfo can either be provided by the community package in
/usr/lib/genisoimage/isoinfo or by the mkisofs package from
J. Schilling in /usr/bin/isoinfo. kiwi should be smart enough
to lookup which tool is installed. /usr/bin/isoinfo will be
preferred
2016-04-19 10:07:21 +02:00
Marcus Schäfer
e6cc5bfa09 Move from nose to pytest
nose is no longer maintained, thus we have to move to another
testing system. This commit updates the tox setup and all tests
to use pytest instead of nose.
2016-03-14 12:23:14 +01:00
Marcus Schäfer
40e6308aa9 Port application from python 2.7 to 3.4
For new applications like this kiwi version and its use cases
it is better to base it on a more recent python version
2016-02-17 22:38:38 +01:00
Marcus Schäfer
4d1fcbad37
Allow building 32bit bios images 2016-02-15 12:46:07 +01:00
Marcus Schäfer
366ffa77ed Fixed unit test for fix_boot_catalog on big endian 2016-02-09 11:22:27 +01:00
Marcus Schäfer
6f50830ccd
Fixed unit test for fix_boot_catalog on big endian 2016-02-09 11:16:33 +01:00
Marcus Schäfer
6a0292c958
Added fix_boot_catalog and relocate_boot_catalog 2016-01-27 12:36:44 +01:00
Marcus Schäfer
68ce70f10e
Fixed hybrid call
offset number should be passed as string to Command
2015-12-11 18:15:37 +01:00
Marcus Schäfer
7d596adc2e
Added hybrid ISO setup 2015-12-10 18:18:54 +01:00
Marcus Schäfer
ff52d672fe
Added create_header_end_block method in Iso class 2015-12-09 17:06:22 +01:00
Marcus Schäfer
f4d3711aa5
Added isols method in Iso class 2015-12-09 12:53:00 +01:00
Marcus Schäfer
61ea327a4c
Added isolinux bootloader support 2015-12-09 10:39:21 +01:00