Manager: adjust unit test to fit new command/task names in job compiler

This commit is contained in:
Sybren A. Stüvel 2022-03-17 16:19:45 +01:00
parent b6a7a15582
commit 86879aaaad

View File

@ -110,9 +110,9 @@ func TestSimpleBlenderRenderHappy(t *testing.T) {
tVideo := aj.Tasks[4] // This should be a video encoding task tVideo := aj.Tasks[4] // This should be a video encoding task
assert.NotEmpty(t, tVideo.UUID) assert.NotEmpty(t, tVideo.UUID)
assert.Equal(t, "create-video", tVideo.Name) assert.Equal(t, "preview-video", tVideo.Name)
assert.Equal(t, 1, len(tVideo.Commands)) assert.Equal(t, 1, len(tVideo.Commands))
assert.Equal(t, "create-video", tVideo.Commands[0].Name) assert.Equal(t, "frames-to-video", tVideo.Commands[0].Name)
assert.EqualValues(t, AuthoredCommandParameters{ assert.EqualValues(t, AuthoredCommandParameters{
"exe": "{ffmpeg}", "exe": "{ffmpeg}",
"inputGlob": "/render/sprites/farm_output/promo/square_ellie/square_ellie.lighting_light_breakdown2__intermediate-2006-01-02_090405/*.png", "inputGlob": "/render/sprites/farm_output/promo/square_ellie/square_ellie.lighting_light_breakdown2__intermediate-2006-01-02_090405/*.png",
@ -193,9 +193,9 @@ func TestSimpleBlenderRenderWindowsPaths(t *testing.T) {
tVideo := aj.Tasks[4] // This should be a video encoding task tVideo := aj.Tasks[4] // This should be a video encoding task
assert.NotEmpty(t, tVideo.UUID) assert.NotEmpty(t, tVideo.UUID)
assert.Equal(t, "create-video", tVideo.Name) assert.Equal(t, "preview-video", tVideo.Name)
assert.Equal(t, 1, len(tVideo.Commands)) assert.Equal(t, 1, len(tVideo.Commands))
assert.Equal(t, "create-video", tVideo.Commands[0].Name) assert.Equal(t, "frames-to-video", tVideo.Commands[0].Name)
assert.EqualValues(t, AuthoredCommandParameters{ assert.EqualValues(t, AuthoredCommandParameters{
"exe": "{ffmpeg}", "exe": "{ffmpeg}",
"inputGlob": "R:/sprites/farm_output/promo/square_ellie/square_ellie.lighting_light_breakdown2__intermediate-2006-01-02_090405/*.png", "inputGlob": "R:/sprites/farm_output/promo/square_ellie/square_ellie.lighting_light_breakdown2__intermediate-2006-01-02_090405/*.png",