mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add test and integration tests to the Makefile (#222)
* Add unit and integration test to make file * Add gitattributes for go.mod/go.sum files * Always run integration tests * Removed redundant call. Clarified targets
This commit is contained in:
@@ -3,13 +3,14 @@ package manager
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/stashapp/stash/pkg/ffmpeg"
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
"github.com/stashapp/stash/pkg/utils"
|
||||
"math"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"strconv"
|
||||
|
||||
"github.com/stashapp/stash/pkg/ffmpeg"
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
"github.com/stashapp/stash/pkg/utils"
|
||||
)
|
||||
|
||||
type GeneratorInfo struct {
|
||||
@@ -84,7 +85,7 @@ func (g *GeneratorInfo) configure() error {
|
||||
// Something seriously wrong with this file
|
||||
if numberOfFrames == 0 || !utils.IsValidFloat64(framerate) {
|
||||
logger.Errorf(
|
||||
"number of frames or framerate is 0. nb_frames <%s> framerate <%s> duration <%s>",
|
||||
"number of frames or framerate is 0. nb_frames <%s> framerate <%f> duration <%f>",
|
||||
videoStream.NbFrames,
|
||||
framerate,
|
||||
g.VideoFile.Duration,
|
||||
|
||||
Reference in New Issue
Block a user