[regression] 11 tests failing since build-info support is merged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Image Tools |
Fix Released
|
High
|
Fathi Boudra |
Bug Description
File "/usr/lib/
__index_archive
raise ArError, "Unable to find global header"
debian.
The problem arises from the "build-info" extraction part in the
builder() method (file hwpack/build.py, at the very end of the file),
and it is only visible running the tests. That function also calls to
be refactored, since it is getting huge and difficult to go through.
When running the tests, we "fake" some Debian packages, using the
DummyFetchedPackage class (file hwpack/testing.py), that returns
something that is not comparable to a deb file; when the builder()
function is called and it opens the deb file to take out the
build-info stuff, the ArFile class reads the content of the deb file,
and there it breaks, because it is missing basically all the
structure.
Related branches
- linaro-image-tools maintainers: Pending requested
-
Diff: 36 lines (+14/-3)1 file modifiedlinaro_image_tools/hwpack/builder.py (+14/-3)
Changed in linaro-image-tools: | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
importance: | Undecided → High |
assignee: | nobody → Fathi Boudra (fboudra) |
milestone: | none → 2012.10 |
description: | updated |
Changed in linaro-image-tools: | |
status: | Triaged → In Progress |
Changed in linaro-image-tools: | |
status: | In Progress → Fix Committed |
Changed in linaro-image-tools: | |
status: | Fix Committed → Fix Released |
Locally, I still getting one following failure:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= image_tools. hwpack. tests.test_ builder. HardwarePackBui lderTests. test_obeys_ include_ debs ------- ------- ------- ------- ------- ------- ------- ------- ------- image_tools/ hwpack/ tests/test_ builder. py", line 297, in test_obeys_ include_ debs image_tools/ hwpack/ builder. py", line 350, in build python2. 7/dist- packages/ debian/ debfile. py", line 208, in __init__ __init_ _(self, filename, mode, fileobj) python2. 7/dist- packages/ debian/ arfile. py", line 47, in __init__ __index_ archive( ) python2. 7/dist- packages/ debian/ arfile. py", line 52, in __index_archive
ERROR: linaro_
-------
Traceback (most recent call last):
File "linaro_
File "linaro_
File "/usr/lib/
ArFile.
File "/usr/lib/
self.
File "/usr/lib/
fp = open(self.__fname, "rb")
IOError: [Errno 2] No such file or directory: 'foo_1.1_all.deb'