From dde2d1d2810d6bf9d06e22decc7eed57b15aaea6 Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Tue, 1 Jun 2021 11:23:42 -0400 Subject: [PATCH] Fix imports --- .../src/functional_test_runner/functional_test_runner.ts | 3 ++- packages/kbn-test/src/functional_tests/tasks.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts b/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts index cbf191271cba4..0a2dba60742ad 100644 --- a/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts +++ b/packages/kbn-test/src/functional_test_runner/functional_test_runner.ts @@ -5,6 +5,7 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ +import { relative } from 'path'; import { ToolingLog } from '@kbn/dev-utils'; @@ -121,7 +122,7 @@ export class FunctionalTestRunner { } // eslint-disable-next-line - console.log(`--- Running ${Path.relative(process.cwd(), this.configFile)}`); + console.log(`--- Running ${relative(process.cwd(), this.configFile)}`); const dockerServers = new DockerServersService( config.get('dockerServers'), diff --git a/packages/kbn-test/src/functional_tests/tasks.js b/packages/kbn-test/src/functional_tests/tasks.js index 2cf0730c5f943..122a5a23842d6 100644 --- a/packages/kbn-test/src/functional_tests/tasks.js +++ b/packages/kbn-test/src/functional_tests/tasks.js @@ -88,7 +88,7 @@ export async function runTests(options) { continue; } - console.log(`--- Running ${Path.relative(process.cwd(), configPath)}`); + console.log(`--- Running ${relative(process.cwd(), configPath)}`); await withProcRunner(log, async (procs) => { const config = await readConfigFile(log, configPath);