Skip to content

Commit af9690f

Browse files
committed
fix: give CI one ffmpeg.version to read
CI reads the FFmpeg version out of the media module's pom by the name of its element, and the property that hands the version to the tests had that same name. The lookup found both, and wrote the second one, unexpanded, into the environment of every build, which rejected it before anything was built. The tests now get the version under a name of their own.
1 parent 0583d8c commit af9690f

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎webrtc-java-media/pom.xml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@
7474
</additionalClasspathElements>
7575
<!-- The release the libraries on that path have to be,
7676
so that a test catches an install left over from an
77-
earlier one. -->
77+
earlier one. Not named ffmpeg.version itself: CI reads
78+
the version out of this file by that element name, and
79+
has to find it exactly once. -->
7880
<systemPropertyVariables>
79-
<ffmpeg.version>${ffmpeg.version}</ffmpeg.version>
81+
<test.ffmpeg.version>${ffmpeg.version}</test.ffmpeg.version>
8082
</systemPropertyVariables>
8183
</configuration>
8284
</plugin>

‎webrtc-java-media/src/test/java/dev/onvoid/webrtc/media/player/FFmpegTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class FFmpegTest {
3232
@Test
3333
void loadsPinnedRelease() {
3434
// Set by the build from the version the submodule is pinned to.
35-
String expected = System.getProperty("ffmpeg.version");
35+
String expected = System.getProperty("test.ffmpeg.version");
3636

37-
assertNotNull(expected, "ffmpeg.version is not set");
37+
assertNotNull(expected, "test.ffmpeg.version is not set");
3838

3939
// A release build names itself after its tag, n<version>.
4040
assertEquals("n" + expected, FFmpeg.version());

0 commit comments

Comments
 (0)