summaryrefslogtreecommitdiff
path: root/tools/docker/entrypoint.sh
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-10-01 16:28:58 +0100
committerStephen Finucane <stephen@that.guru>2020-11-29 12:14:52 +0000
commit6025f0e2533f1b5dc2e4d36a6881397402ea3d6d (patch)
tree352a30e184333097875e01ed8355f61e99b542cf /tools/docker/entrypoint.sh
parent5124003c1d447842e250fd0f698c6a9a857a47b6 (diff)
downloadpatchwork-6025f0e2533f1b5dc2e4d36a6881397402ea3d6d.tar
patchwork-6025f0e2533f1b5dc2e4d36a6881397402ea3d6d.tar.gz
Add parallel testing
This saves us a good deal of time, even allowing for process startup and general overhead. Before: real 6m39.103s user 1m9.561s sys 0m2.705s After: real 4m5.267s user 1m24.527s sys 0m3.828s This requires N databases, where N is the N of processors on the host. We need to update the docker configuration for this. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tools/docker/entrypoint.sh')
-rwxr-xr-xtools/docker/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh
index 6314f1b..8f7ea4f 100755
--- a/tools/docker/entrypoint.sh
+++ b/tools/docker/entrypoint.sh
@@ -26,7 +26,7 @@ reset_data_mysql() {
DROP DATABASE IF EXISTS patchwork;
CREATE DATABASE patchwork CHARACTER SET utf8;
GRANT ALL ON patchwork.* TO 'patchwork' IDENTIFIED BY 'password';
-GRANT ALL PRIVILEGES ON test_patchwork.* TO 'patchwork'@'%';
+GRANT ALL ON 'test_patchwork\_%'.* to 'patchwork'@'%';
FLUSH PRIVILEGES;
EOF
}