From 4f279a1dd9c7aaac8323bc43f0e96c1709836089 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 11 Oct 2023 11:12:18 +0530 Subject: [PATCH] Set env vars properly when running mmctl tests (#24842) Exporting a variable doesn't really pass that down to the docker container. We pass the `--env` variable manually. ```release-note NONE ``` Co-authored-by: Mattermost Build --- .github/workflows/mmctl-test-template.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mmctl-test-template.yml b/.github/workflows/mmctl-test-template.yml index d93d8e514e..8a9ebb92c4 100644 --- a/.github/workflows/mmctl-test-template.yml +++ b/.github/workflows/mmctl-test-template.yml @@ -49,12 +49,15 @@ jobs: - name: Run mmctl Tests run: | if [[ ${{ github.ref_name }} == 'master' ]]; then - export MMCTL_TESTFLAGS="-timeout 30m -race" + export TESTFLAGS="-timeout 30m -race" + else + export TESTFLAGS="-timeout 30m" fi docker run --net ghactions_mm-test \ --ulimit nofile=8096:8096 \ --env-file=server/build/dotenv/test.env \ --env MM_SQLSETTINGS_DATASOURCE="${{ inputs.datasource }}" \ + --env MMCTL_TESTFLAGS="$TESTFLAGS" \ -v $(go env GOCACHE):/go/cache \ -e GOCACHE=/go/cache \ -v $PWD:/mattermost \