Skip to content

Commit

Permalink
Log command
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed Nov 4, 2021
1 parent 7d2db2c commit 8f897f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions x-pack/plugins/apm/scripts/test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ if (server) {
ftrScript = 'functional_test_runner';
}

const grepArg = grep ? `--grep ${grep}` : '';
const grepArg = grep ? `--grep "${grep}"` : '';
const cmd = `node ../../../../scripts/${ftrScript} ${grepArg} --config ../../../../test/apm_api_integration/${license}/config.ts`;

childProcess.execSync(
`node ../../../../scripts/${ftrScript} ${grepArg} --config ../../../../test/apm_api_integration/${license}/config.ts`,
{ cwd: path.join(__dirname), stdio: 'inherit' }
);
console.log(`Running ${cmd}`);

childProcess.execSync(cmd, { cwd: path.join(__dirname), stdio: 'inherit' });
9 changes: 4 additions & 5 deletions x-pack/plugins/apm/scripts/test/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ if (server) {
}

const config = open ? './ftr_config_open.ts' : './ftr_config_run.ts';
const grepArg = grep ? `--grep ${grep}` : '';
const grepArg = grep ? `--grep "${grep}"` : '';
const bailArg = bail ? `--bail` : '';
const cmd = `node ../../../../scripts/${ftrScript} --config ${config} ${grepArg} ${bailArg} --kibana-install-dir '${kibanaInstallDir}'`;

childProcess.execSync(
`node ../../../../scripts/${ftrScript} --config ${config} ${grepArg} ${bailArg} --kibana-install-dir '${kibanaInstallDir}'`,
{ cwd: e2eDir, stdio: 'inherit' }
);
console.log(`Running ${cmd}`);
childProcess.execSync(cmd, { cwd: e2eDir, stdio: 'inherit' });

0 comments on commit 8f897f2

Please sign in to comment.