Merge pull request #1935 from spotify/rugvip/out

cli: fix stdout not being logged in e2e test cmd failures
This commit is contained in:
Patrik Oldsberg
2020-08-13 09:23:51 +02:00
committed by GitHub
5 changed files with 11 additions and 6 deletions
+3
View File
@@ -60,6 +60,9 @@ async function runPlain(cmd, options) {
});
return stdout.trim();
} catch (error) {
if (error.stdout) {
process.stdout.write(error.stdout);
}
if (error.stderr) {
process.stderr.write(error.stderr);
}
@@ -12,9 +12,10 @@ import { useHotCleanup } from '@backstage/backend-common';
export default async function createPlugin({
logger,
config,
database,
}: PluginEnvironment) {
const locationReader = new LocationReaders(logger);
const locationReader = new LocationReaders({ logger, config });
const db = await DatabaseManager.createDatabase(database, { logger });
const entitiesCatalog = new DatabaseEntitiesCatalog(db);