Test contains buildParams and Input
parent
8e4e4754bb
commit
279be02b18
|
|
@ -2048,6 +2048,7 @@ class DownloadRepository {
|
||||||
echo ' '
|
echo ' '
|
||||||
`);
|
`);
|
||||||
yield run_cli_1.RunCli.RunCli(`
|
yield run_cli_1.RunCli.RunCli(`
|
||||||
|
tree ${cloud_runner_state_1.CloudRunnerState.builderPathFull}
|
||||||
echo 'Starting checks of cache for the Unity project Library and git LFS files'
|
echo 'Starting checks of cache for the Unity project Library and git LFS files'
|
||||||
${cloud_runner_state_1.CloudRunnerState.getHandleCachingCommand}
|
${cloud_runner_state_1.CloudRunnerState.getHandleCachingCommand}
|
||||||
`);
|
`);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -30,10 +30,16 @@ describe('Cloud Runner', () => {
|
||||||
const file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString();
|
const file = fs.readFileSync(`${CloudRunnerState.buildGuid}-outputfile.txt`, 'utf-8').toString();
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(file);
|
console.log(file);
|
||||||
const keys = Object.keys(buildParameter);
|
const buildParameterKeys = Object.keys(buildParameter);
|
||||||
for (const element of keys) {
|
for (const element of buildParameterKeys) {
|
||||||
if (buildParameter[element] !== undefined) {
|
if (buildParameter[element] !== undefined) {
|
||||||
expect(file).toContain(`${element}=`);
|
expect(file).toContain(`${element}=${buildParameter[element]}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const inputKeys = Object.getOwnPropertyNames(Input);
|
||||||
|
for (const element of inputKeys) {
|
||||||
|
if (Input[element] !== undefined) {
|
||||||
|
expect(file).toContain(`${element}=${Input[element]}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ export class DownloadRepository {
|
||||||
echo ' '
|
echo ' '
|
||||||
`);
|
`);
|
||||||
await RunCli.RunCli(`
|
await RunCli.RunCli(`
|
||||||
|
tree ${CloudRunnerState.builderPathFull}
|
||||||
echo 'Starting checks of cache for the Unity project Library and git LFS files'
|
echo 'Starting checks of cache for the Unity project Library and git LFS files'
|
||||||
${CloudRunnerState.getHandleCachingCommand}
|
${CloudRunnerState.getHandleCachingCommand}
|
||||||
`);
|
`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue