From e768d7b3a6f925dbd7c5466fa86a4a21432d0d1d Mon Sep 17 00:00:00 2001
From: Daniel Wagner-Hall <daniel@matrix.org>
Date: Wed, 26 Aug 2015 11:41:42 +0100
Subject: [PATCH] Allow tests to be filter when using tox

`tox` will run all tests
`tox tests.api.test_auth.AuthTestCase` will run just the tests in AuthTestCase
---
 tox.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index 58cf9613cb..370a63cbb8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,7 +9,7 @@ deps =
 setenv =
     PYTHONDONTWRITEBYTECODE = no_byte_code
 commands =
-    coverage run --source=./synapse {envbindir}/trial tests
+    coverage run --source=./synapse {envbindir}/trial {posargs:tests}
     coverage report -m
 install_command =
     pip install --process-dependency-links --pre {opts} {packages}
-- 
GitLab