[ftr] use correct script path when running outside of repo root (#136397)

This commit is contained in:
Spencer 2022-07-14 13:14:59 -05:00 committed by GitHub
parent 8ed5aaf92d
commit 7231d7c5a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ export async function runKibanaServer({
};
const prefixArgs = devMode
? [Path.relative(process.cwd(), Path.resolve(REPO_ROOT, 'scripts/kibana'))]
? [Path.relative(procRunnerOpts.cwd, Path.resolve(REPO_ROOT, 'scripts/kibana'))]
: [];
const buildArgs: string[] = config.get('kbnTestServer.buildArgs') || [];