From e2b165cf3ea241dd430cca8145a2dc459110666e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 21 Nov 2017 00:53:46 +0100 Subject: Small fix to run webapp tests (#7777) --- cmd/platform/test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/platform/test.go b/cmd/platform/test.go index c815eebc3..2442d8f43 100644 --- a/cmd/platform/test.go +++ b/cmd/platform/test.go @@ -131,7 +131,12 @@ func executeTestCommand(cmd *exec.Cmd) { } func runWebClientTests() { - os.Chdir("webapp") + if webappDir := os.Getenv("WEBAPP_DIR"); webappDir != "" { + os.Chdir(webappDir) + } else { + os.Chdir("../mattermost-webapp") + } + cmd := exec.Command("npm", "test") executeTestCommand(cmd) } -- cgit v1.2.3-1-g7c22