forked from TrueCloudLab/rclone
cmd/gitannex: Remove assumption in e2e test version check
This commit is contained in:
parent
f82822baca
commit
96d3adc771
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@ -41,7 +42,7 @@ func checkRcloneBinaryVersion() error {
|
||||||
if parsed.Version != fs.Version {
|
if parsed.Version != fs.Version {
|
||||||
return fmt.Errorf("expected version %q, but got %q", fs.Version, parsed.Version)
|
return fmt.Errorf("expected version %q, but got %q", fs.Version, parsed.Version)
|
||||||
}
|
}
|
||||||
if !parsed.IsGit {
|
if parsed.IsGit != strings.HasSuffix(fs.Version, "-DEV") {
|
||||||
return errors.New("expected rclone to be a dev build")
|
return errors.New("expected rclone to be a dev build")
|
||||||
}
|
}
|
||||||
_, tagString := buildinfo.GetLinkingAndTags()
|
_, tagString := buildinfo.GetLinkingAndTags()
|
||||||
|
|
Loading…
Add table
Reference in a new issue