Skip to content

Commit

Permalink
debug versions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Dec 6, 2024
1 parent 329ac1e commit 130e8a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testbench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ pub fn ffmpeg_to_frame(
assert_eq!(ffmpeg_stderr_iter.next(), Some("version"));

if let Some(version_str) = ffmpeg_stderr_iter.next() {
dbg!(&version_str);
let version = match semver::Version::parse(version_str) {
Ok(version) => version,
Err(orig_err) => {
Expand All @@ -501,6 +502,8 @@ pub fn ffmpeg_to_frame(
}
};
let req = semver::VersionReq::parse(">=5.1.1")?;
dbg!(&version);
dbg!(&req);
if !req.matches(&version) {
anyhow::bail!(
"You have ffmpeg {version} but requirement is \
Expand Down

0 comments on commit 130e8a2

Please sign in to comment.