Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
1fdbfd95
Verified
Commit
1fdbfd95
authored
7 years ago
by
Mattia Rizzolo
Browse files
Options
Downloads
Patches
Plain Diff
tests/android: skip tests involving abootimg on BE archs (see Debian's #725729)
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
cfd79601
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/comparators/test_android.py
+6
-0
6 additions, 0 deletions
tests/comparators/test_android.py
with
6 additions
and
0 deletions
tests/comparators/test_android.py
+
6
−
0
View file @
1fdbfd95
...
...
@@ -17,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
import
sys
import
pytest
from
diffoscope.config
import
Config
...
...
@@ -29,6 +30,9 @@ from ..utils.tools import skip_unless_tools_exist
bootimg1
=
load_fixture
(
'
android1.img
'
)
bootimg2
=
load_fixture
(
'
android2.img
'
)
# abootimg misfires on big endian architectures
# Part of the bug: https://bugs.debian.org/725729
bearch
=
sys
.
byteorder
==
'
big
'
def
test_identification
(
bootimg1
):
assert
isinstance
(
bootimg1
,
AndroidBootImgFile
)
...
...
@@ -45,6 +49,7 @@ def differences(bootimg1, bootimg2):
@skip_unless_tools_exist
(
'
abootimg
'
)
@pytest.mark.skipif
(
bearch
,
reason
=
'
abootimg is buggy on BE architectures
'
)
def
test_diff
(
differences
):
# FIXME
with
open
(
'
tests/data/android_expected_diff
'
,
'
w
'
)
as
f
:
...
...
@@ -54,6 +59,7 @@ def test_diff(differences):
@skip_unless_tools_exist
(
'
abootimg
'
)
@pytest.mark.skipif
(
bearch
,
reason
=
'
abootimg is buggy on BE architectures
'
)
def
test_compare_non_existing
(
monkeypatch
,
bootimg1
):
monkeypatch
.
setattr
(
Config
(),
'
new_file
'
,
True
)
difference
=
bootimg1
.
compare
(
MissingFile
(
'
/nonexisting
'
,
bootimg1
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment