mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Small fix to run webapp tests (#7777)
This commit is contained in:
committed by
Christopher Speller
parent
deff850115
commit
e2b165cf3e
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user