]> git.sesse.net Git - ffmpeg/commit
ffprobe: Fix fate tests for ffprobe in cases where TARGET_PATH differs from the curre...
authorMartin Storsjö <martin@martin.st>
Mon, 2 Dec 2019 09:16:25 +0000 (11:16 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 18 Dec 2019 13:15:12 +0000 (15:15 +0200)
commite10654de2b0db0f3b4828a3cc066d6fa21d02516
tree665e89bb3d24ade3e4f683ed2f654bf5785ce08a
parentbd831912712e32b8e78d409bfa7ea7e668ce4b42
ffprobe: Fix fate tests for ffprobe in cases where TARGET_PATH differs from the current path

In these cases, we must pass the full path of the file to ffprobe
(as the current working dir on the remote system, e.g. when invoked
with "ssh remote ffprobe ..." isn't the wanted one).

The input filename passed to ffprobe is also included in the output,
which is part of the reference test data. Add a new option to
ffprobe to allow overriding what path is printed, to keep the
original relative path in the tests.

An alternative approach could be an option to allow requesting omitting
the file name from the dumped data, and updating the test references
accordingly.

Signed-off-by: Martin Storsjö <martin@martin.st>
fftools/ffprobe.c
tests/fate/ffprobe.mak