From 96d3adc771483d1ed71e3e5090bd17161b59e406 Mon Sep 17 00:00:00 2001 From: Dan McArdle Date: Wed, 17 Apr 2024 09:05:01 -0400 Subject: [PATCH] cmd/gitannex: Remove assumption in e2e test version check --- cmd/gitannex/e2e_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/gitannex/e2e_test.go b/cmd/gitannex/e2e_test.go index 1be8497f3..bae3973d5 100644 --- a/cmd/gitannex/e2e_test.go +++ b/cmd/gitannex/e2e_test.go @@ -9,6 +9,7 @@ import ( "os/exec" "path/filepath" "runtime" + "strings" "testing" "github.com/stretchr/testify/require" @@ -41,7 +42,7 @@ func checkRcloneBinaryVersion() error { if parsed.Version != fs.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") } _, tagString := buildinfo.GetLinkingAndTags()