Renaming platform binary to mattermost. (#8801)

Этот коммит содержится в:
Christopher Speller
2018-05-17 12:40:40 -07:00
коммит произвёл GitHub
родитель 1f6c271b3b
Коммит 11cbb59747
41 изменённых файлов: 284 добавлений и 262 удалений

Просмотреть файл

@@ -0,0 +1,19 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package commands
import (
"flag"
"testing"
"github.com/stretchr/testify/require"
)
func TestExecCommand(t *testing.T) {
if filter := flag.Lookup("test.run").Value.String(); filter != "ExecCommand" {
t.Skip("use -run ExecCommand to execute a command via the test executable")
}
RootCmd.SetArgs(flag.Args())
require.NoError(t, RootCmd.Execute())
}