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
cadfc73a
Verified
Commit
cadfc73a
authored
9 months ago
by
Mattia Rizzolo
Browse files
Options
Downloads
Patches
Plain Diff
tests: support ffmpeg >= 7 that adds some extra context to the diff
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
7917b746
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#709150
passed with warnings
9 months ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/comparators/test_ffprobe.py
+6
-2
6 additions, 2 deletions
tests/comparators/test_ffprobe.py
with
6 additions
and
2 deletions
tests/comparators/test_ffprobe.py
+
6
−
2
View file @
cadfc73a
...
...
@@ -21,7 +21,7 @@ import subprocess
from
diffoscope.comparators.ffprobe
import
FfprobeFile
from
..utils.data
import
load_fixture
,
assert_diff
from
..utils.data
import
load_fixture
,
get_data
from
..utils.tools
import
skip_unless_tools_exist
,
skip_unless_tool_is_at_least
from
..utils.nonexisting
import
assert_non_existing
...
...
@@ -54,7 +54,11 @@ def differences(mp3_1, mp3_2):
@skip_unless_tools_exist
(
"
ffprobe
"
)
@skip_unless_tool_is_at_least
(
"
ffprobe
"
,
ffprobe_version
,
"
4.4
"
)
def
test_diff
(
differences
):
assert_diff
(
differences
[
0
],
"
mp3_expected_diff
"
)
# >= 7 adds a "(mp3float)" annotation
computed_diff
=
differences
[
0
].
unified_diff
.
replace
(
"
mp3 (mp3float)
"
,
"
mp3
"
)
assert
computed_diff
==
get_data
(
"
mp3_expected_diff
"
)
@skip_unless_tools_exist
(
"
ffprobe
"
)
...
...
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