From 72d5cfa07c1ac539d3d7f2b5fc4403ccb789c542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sat, 24 Feb 2024 11:53:14 +0100 Subject: [PATCH] Job compiler: test simplification of frame range for video task --- internal/manager/job_compilers/job_compilers_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/manager/job_compilers/job_compilers_test.go b/internal/manager/job_compilers/job_compilers_test.go index 19f39e47..c6abee44 100644 --- a/internal/manager/job_compilers/job_compilers_test.go +++ b/internal/manager/job_compilers/job_compilers_test.go @@ -376,6 +376,14 @@ func TestComplexFrameRange(t *testing.T) { }, frameRangesFromCLI, ) + + // Check the FFmpeg output. The frame range should have been simplified to + // `first-last` due to the comma in the input range. + videoTask := aj.Tasks[3] + require.Equal(t, "ffmpeg", videoTask.Type) + assert.Equal(t, + "/render/sprites/farm_output/promo/square_ellie/square_ellie.lighting_light_breakdown2/scene123-0-90.mp4", + videoTask.Commands[0].Parameters["outputFile"]) } func ptr[T any](value T) *T {