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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-01-05 04:03:44 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-01-05 04:03:58 +0300
commit247911dace2ffee7b2ffd9d861d7498fd40f7208 (patch)
tree7c8fcf643da17758491463c498186ceaad7bcb12 /tests/PHPUnit/bootstrap.php
parentb2ac66d9b561aadaf0bdc282aa9cd9710c22513d (diff)
crap
Diffstat (limited to 'tests/PHPUnit/bootstrap.php')
-rw-r--r--tests/PHPUnit/bootstrap.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/PHPUnit/bootstrap.php b/tests/PHPUnit/bootstrap.php
index 3360f5abb5..d793f4e041 100644
--- a/tests/PHPUnit/bootstrap.php
+++ b/tests/PHPUnit/bootstrap.php
@@ -110,11 +110,14 @@ Try again.";
$url = Fixture::getRootUrl() . 'tests/PHPUnit/proxy/index.php?module=TestRunner&action=check';
$response = Http::sendHttpRequestBy('curl', $url, 2);
- if ($response !== 'OK') {
- throw new Exception(sprintf(
- "Piwik should be running at %s but this URL returned an unexpected response: '%s'",
- Fixture::getRootUrl(),
- $response
- ));
+ // The SQL error is for Travis...
+ if ($response === 'OK' || strpos($response, 'Base table or view not found: 1146 Table &#039;piwik_tests.option&#039; doesn&#039;t exist') !== false) {
+ return;
}
+
+ throw new Exception(sprintf(
+ "Piwik should be running at %s but this URL returned an unexpected response: '%s'",
+ Fixture::getRootUrl(),
+ $response
+ ));
}