test: migration from Python to JavaScript

This commit is contained in:
Francis Lachapelle
2021-11-10 02:27:09 -05:00
parent 7474967c4f
commit ae637c49d5

View File

@@ -26,8 +26,10 @@ describe('sogo-tool tests', function() {
it('backup', async function() {
const sudo = isRoot ? `sudo -u sogo ` : ``
execSync(`${sudo}sogo-tool backup ${tmpdir} ${config.username}`, (error, stdout, stderr) => {
expect(error).not.toBeDefined()
})
try {
execSync(`${sudo}sogo-tool backup ${tmpdir} ${config.username} 2>&1`)
} catch (err) {
fail(err)
}
})
})