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
path: root/tests/lib
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-13 17:56:05 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-13 17:56:05 +0400
commit82f1965b26210f28cb888bc515ed9274bf411069 (patch)
tree4f869116ef0157214dd38ec1b08043b79fb82091 /tests/lib
parent14ceb446110653649dceb037db4e6e53fcb6697d (diff)
Trying to fix UI tests build for installation & updater tests.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/screenshot-testing/support/test-environment.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/test-environment.js b/tests/lib/screenshot-testing/support/test-environment.js
index 4fa6aa4105..fbaa34e945 100644
--- a/tests/lib/screenshot-testing/support/test-environment.js
+++ b/tests/lib/screenshot-testing/support/test-environment.js
@@ -91,6 +91,7 @@ TestingEnvironment.prototype._call = function (params, done) {
});
};
+var droppedOnce = false;
TestingEnvironment.prototype.setupFixture = function (fixtureClass, done) {
console.log(" Setting up fixture " + fixtureClass + "...");
@@ -101,8 +102,11 @@ TestingEnvironment.prototype.setupFixture = function (fixtureClass, done) {
processArgs.push('--persist-fixture-data');
}
- if (options['drop']) {
+ if (options['drop']
+ && !droppedOnce
+ ) {
processArgs.push('--drop');
+ droppedOnce = true;
}
var child = require('child_process').spawn(config.php, processArgs);