Hack to fix test runs on arch which only has mariadb

This commit is contained in:
Johannes Zellner
2019-05-07 15:06:38 +02:00
parent a6ce5ce796
commit d221e40602

View File

@@ -309,6 +309,9 @@ 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();
createBackup(function (error, result) {
expect(error).to.be(null);
expect(fs.statSync(path.join(gBackupConfig.backupFolder, 'snapshot/box.tar.gz')).nlink).to.be(2); // hard linked to a rotated backup
@@ -321,6 +324,9 @@ 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();
createBackup(function (error, result) {
expect(error).to.be(null);
expect(fs.statSync(path.join(gBackupConfig.backupFolder, 'snapshot/box.tar.gz')).nlink).to.be(2); // hard linked to a rotated backup