Fix peertube script
This commit is contained in:
parent
00f9e41ebf
commit
5c142a4bab
|
@ -1,6 +1,6 @@
|
||||||
// Order of the tests we want to execute
|
// Order of the tests we want to execute
|
||||||
import './create-transcoding-job'
|
|
||||||
import './create-import-video-file-job'
|
import './create-import-video-file-job'
|
||||||
|
import './create-transcoding-job'
|
||||||
import './peertube'
|
import './peertube'
|
||||||
import './reset-password'
|
import './reset-password'
|
||||||
import './update-host'
|
import './update-host'
|
||||||
|
|
|
@ -40,7 +40,7 @@ describe('Test CLI wrapper', function () {
|
||||||
this.timeout(60000)
|
this.timeout(60000)
|
||||||
|
|
||||||
const env = getEnvCli(server)
|
const env = getEnvCli(server)
|
||||||
const stdout = await execCLI(`${env} ` + cmd + ` auth add --url ${server.url} -U user_1 -p "super password"`)
|
await execCLI(`${env} ` + cmd + ` auth add --url ${server.url} -U user_1 -p "super password"`)
|
||||||
})
|
})
|
||||||
|
|
||||||
after(async function () {
|
after(async function () {
|
||||||
|
|
|
@ -62,7 +62,7 @@ if (!process.argv.slice(2).length) {
|
||||||
|
|
||||||
getSettings()
|
getSettings()
|
||||||
.then(settings => {
|
.then(settings => {
|
||||||
const state = (settings.default === -1) ?
|
const state = (settings.default === undefined || settings.default === -1) ?
|
||||||
'no instance selected, commands will require explicit arguments' :
|
'no instance selected, commands will require explicit arguments' :
|
||||||
('instance ' + settings.remotes[settings.default] + ' selected')
|
('instance ' + settings.remotes[settings.default] + ' selected')
|
||||||
program
|
program
|
||||||
|
|
Loading…
Reference in New Issue