Skip to content

Commit 000b85c

Browse files
author
LeeDr
committed
find integration-test dir when running on Jenkins
1 parent fe6dd8e commit 000b85c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ import { esTestConfig, kbnTestConfig } from '@kbn/test';
1212

1313
const reportName = 'Stack Functional Integration Tests';
1414
const testsFolder = '../test/functional/apps';
15-
const stateFilePath = '../../../../../integration-test/qa/envvars.sh';
16-
const prepend = (testFile) => require.resolve(`${testsFolder}/${testFile}`);
1715
const log = new ToolingLog({
1816
level: 'info',
1917
writeTo: process.stdout,
2018
});
19+
log.info(`WORKSPACE in config file ${process.env.WORKSPACE}`);
20+
const stateFilePath = process.env.WORKSPACE
21+
? `${process.env.WORKSPACE}/qa/envvars.sh`
22+
: '../../../../../integration-test/qa/envvars.sh';
23+
24+
const prepend = (testFile) => require.resolve(`${testsFolder}/${testFile}`);
2125

2226
export default async ({ readConfigFile }) => {
2327
const defaultConfigs = await readConfigFile(require.resolve('../../functional/config'));

0 commit comments

Comments
 (0)