diff --git a/src/test/backups-test.js b/src/test/backups-test.js index 72b699c9c..0e881d98b 100644 --- a/src/test/backups-test.js +++ b/src/test/backups-test.js @@ -310,7 +310,7 @@ describe('backups', function () { it('can backup', function (done) { // arch only has maria db which lacks some mysqldump options we need, this is only here to allow running the tests :-/ - if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) done(); + if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) return done(); createBackup(function (error, result) { expect(error).to.be(null); @@ -325,7 +325,7 @@ describe('backups', function () { it('can take another backup', function (done) { // arch only has maria db which lacks some mysqldump options we need, this is only here to allow running the tests :-/ - if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) done(); + if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) return done(); createBackup(function (error, result) { expect(error).to.be(null); diff --git a/src/test/database-test.js b/src/test/database-test.js index 35ab07c6d..37587ef50 100644 --- a/src/test/database-test.js +++ b/src/test/database-test.js @@ -2022,6 +2022,9 @@ describe('database', function () { }); it('can export to file', function (done) { + // arch only has maria db which lacks some mysqldump options we need, this is only here to allow running the tests :-/ + if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) return done(); + database.exportToFile('/tmp/box.mysqldump', function (error) { expect(error).to.be(null); done(); @@ -2029,6 +2032,9 @@ describe('database', function () { }); it('can import from file', function (done) { + // arch only has maria db which lacks some mysqldump options we need, this is only here to allow running the tests :-/ + if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) return done(); + database.importFromFile('/tmp/box.mysqldump', function (error) { expect(error).to.be(null); done();