Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-10-05 08:00:41 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-05 08:00:41 +0400
commit3d0b7018a1616ae69c897273f50d76f49e8ec8fc (patch)
treefa023ddc9dfce31fb4e6b0efa4e48dd84299a3c6 /tests/README.md
parent5d968dcc49d6b95284566abd1157b47b5a54268f (diff)
Adding troubleshooting slow test hint ( Mysql slow on EXT4 partition fix )
Diffstat (limited to 'tests/README.md')
-rw-r--r--tests/README.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/README.md b/tests/README.md
index ca7f8d0441..cb9536d040 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -78,7 +78,7 @@ See [PHPUnit update](http://phpunit.de/manual/current/en/installation.html) or t
$ sudo pear install -a phpunit/PHPUnit
-### Troubleshooting
+### Troubleshooting failing tests
If you get any of these errors:
* `RuntimeException: Unable to create the cache directory ( piwik/tmp/templates_c/66/77).`
@@ -90,7 +90,18 @@ On your dev server, give your user permissions to write to the directory:
$ sudo chmod 777 -R piwik/tmp/
+### Troubleshooting SLOW tests
+If the tests are running incredibly slow on your machine, maybe you are running mysql DB on an ext4 partition?
+Here is the tip that will save you hours of research: if you use Mysql on ext4 partition,
+make sure you add "nobarrier" option to /etc/fstab to disable some super slow IO feature.
+
+Change from:
+ `UUID=83237e54-445f-8b83-180f06459d46 / ext4 errors=remount-ro 0 1`
+to this:
+ `UUID=83237e54-445f-8b83-180f06459d46 / ext4 errors=remount-ro,nobarrier 0 1`
+
+Then
## Integration Tests
Integration tests files are in `tests/PHPUnit/Integration/*Test.php`