summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-07-27 08:08:51 -0400
committerGitHub <noreply@github.com>2021-07-27 12:08:51 +0000
commit13944678c3c696418bfde3463bda4cedc8d289c2 (patch)
treee0820f6b4001c2428665b8de9113bf852afdde8c
parentMitigate media repo XSSs on IE11. (#10468) (diff)
downloadsynapse-13944678c3c696418bfde3463bda4cedc8d289c2.tar.xz
Use new go test running syntax for complement. (#10488)
Updates CI and the helper script t ensures all tests are run (in parallel).
-rw-r--r--.github/workflows/tests.yml2
-rw-r--r--changelog.d/10488.misc1
-rwxr-xr-xscripts-dev/complement.sh2
3 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 4e61824ee5..0a62c62d02 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -344,7 +344,7 @@ jobs:
         working-directory: complement/dockerfiles
 
       # Run Complement
-      - run: go test -v -tags synapse_blacklist,msc2403,msc2946,msc3083 ./tests
+      - run: go test -v -tags synapse_blacklist,msc2403,msc2946,msc3083 ./tests/...
         env:
           COMPLEMENT_BASE_IMAGE: complement-synapse:latest
         working-directory: complement
diff --git a/changelog.d/10488.misc b/changelog.d/10488.misc
new file mode 100644
index 0000000000..a55502c163
--- /dev/null
+++ b/changelog.d/10488.misc
@@ -0,0 +1 @@
+Update syntax used to run complement tests.
diff --git a/scripts-dev/complement.sh b/scripts-dev/complement.sh
index 4df224be67..cba015d942 100755
--- a/scripts-dev/complement.sh
+++ b/scripts-dev/complement.sh
@@ -65,4 +65,4 @@ if [[ -n "$1" ]]; then
 fi
 
 # Run the tests!
-go test -v -tags synapse_blacklist,msc2946,msc3083,msc2403 -count=1 $EXTRA_COMPLEMENT_ARGS ./tests
+go test -v -tags synapse_blacklist,msc2946,msc3083,msc2403 -count=1 $EXTRA_COMPLEMENT_ARGS ./tests/...