diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-05 04:03:44 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-05 04:03:58 +0300 |
commit | 247911dace2ffee7b2ffd9d861d7498fd40f7208 (patch) | |
tree | 7c8fcf643da17758491463c498186ceaad7bcb12 /tests/PHPUnit/bootstrap.php | |
parent | b2ac66d9b561aadaf0bdc282aa9cd9710c22513d (diff) |
crap
Diffstat (limited to 'tests/PHPUnit/bootstrap.php')
-rw-r--r-- | tests/PHPUnit/bootstrap.php | 15 |
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 'piwik_tests.option' doesn'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 + )); } |