mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
test: migration from Python to JavaScript
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user