diff --git a/web/server/system/shell.go b/web/server/system/shell.go index 0adb8942..1c11464b 100644 --- a/web/server/system/shell.go +++ b/web/server/system/shell.go @@ -52,10 +52,6 @@ func findGoConvey(directory, gobin, packageName, tagsArg string) Command { return NewCommand(directory, gobin, "list", "-f", "'{{.TestImports}}{{.XTestImports}}'", tagsArg, packageName) } -func compile(directory, gobin, tagsArg string) Command { - return NewCommand(directory, gobin, "test", "-i", tagsArg) -} - func runWithCoverage(compile, goconvey Command, coverage bool, reportPath, directory, gobin, defaultTimeout, tagsArg string, customArguments []string) Command { if compile.Error != nil || goconvey.Error != nil { return compile diff --git a/web/server/system/shell_1_16.go b/web/server/system/shell_1_16.go new file mode 100644 index 00000000..f5099a6f --- /dev/null +++ b/web/server/system/shell_1_16.go @@ -0,0 +1,7 @@ +// +build go1.16 + +package system + +func compile(directory, gobin, tagsArg string) Command { + return NewCommand(directory, gobin, "test", tagsArg) +} diff --git a/web/server/system/shell_older_than_1_16.go b/web/server/system/shell_older_than_1_16.go new file mode 100644 index 00000000..3d90b086 --- /dev/null +++ b/web/server/system/shell_older_than_1_16.go @@ -0,0 +1,7 @@ +// +build !go1.16 + +package system + +func compile(directory, gobin, tagsArg string) Command { + return NewCommand(directory, gobin, "test", "-i", tagsArg) +}