Always log cli output

This commit is contained in:
Johannes Zellner 2016-08-04 11:43:53 +02:00
parent c538009605
commit 98f9651f73

View File

@ -74,9 +74,9 @@ describe('Selfhost EC2 Cloudron creation', function () {
];
var out = machine('create ec2 ' + params.join(' '));
console.log(out.stdout, out.stderr);
if (out.stdout.indexOf('You can now setup your Cloudron at') === -1) {
console.error(out.stdout, out.stderr);
assert(false, 'Creation failed');
}
@ -146,9 +146,9 @@ describe('Selfhost EC2 Cloudron creation', function () {
];
var out = machine('restore ec2 ' + params.join(' '));
console.log(out.stdout, out.stderr);
if (out.stdout.indexOf('You can now use your Cloudron at') === -1) {
console.error(out.stdout, out.stderr);
assert(false, 'Restore failed');
}
@ -198,9 +198,9 @@ describe('Selfhost EC2 Cloudron creation', function () {
];
var out = machine('update ' + params.join(' '));
console.log(out.stdout, out.stderr);
if (out.stdout.indexOf('You can now use your Cloudron at') === -1) {
console.error(out.stdout, out.stderr);
assert(false, 'Update failed');
}
});
@ -223,9 +223,9 @@ describe('Selfhost EC2 Cloudron creation', function () {
];
var out = machine('migrate ec2 ' + params.join(' '));
console.log(out.stdout, out.stderr);
if (out.stdout.indexOf('You can now use your Cloudron at') === -1) {
console.error(out.stdout, out.stderr);
assert(false, 'Migrate failed');
}
});