From 813219c5df45525e9322c89d7f6a5fae680e4fe9 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Wed, 24 Dec 2014 18:01:55 +0200 Subject: [PATCH] The build will now run with multiple processes in order to speed up tests. --- runtests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index abf15a623..b13f2ecce 100755 --- a/runtests.py +++ b/runtests.py @@ -5,11 +5,12 @@ import pytest import sys import os import subprocess +import multiprocessing PYTEST_ARGS = { 'default': ['tests'], - 'fast': ['tests', '-q'], + 'fast': ['tests', '-q', '-n %d' % multiprocessing.cpu_count()], } FLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501']