mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
check missing log file
This commit is contained in:
parent
2b1e4cb7fd
commit
499ad8784a
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -39,6 +39,14 @@ export class RemoteClientLogger {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CloudRunnerLogger.log(`Collected Logs`);
|
CloudRunnerLogger.log(`Collected Logs`);
|
||||||
|
|
||||||
|
// check for log file not existing
|
||||||
|
if (!fs.existsSync(RemoteClientLogger.LogFilePath)) {
|
||||||
|
CloudRunnerLogger.log(`Log file does not exist`);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
|
|
||||||
const directory = process.cwd();
|
const directory = process.cwd();
|
||||||
|
@ -30,7 +30,6 @@ describe('Cloud Runner Kubernetes', () => {
|
|||||||
unityVersion: UnityVersioning.determineUnityVersion('test-project', UnityVersioning.read('test-project')),
|
unityVersion: UnityVersioning.determineUnityVersion('test-project', UnityVersioning.read('test-project')),
|
||||||
targetPlatform: 'StandaloneLinux64',
|
targetPlatform: 'StandaloneLinux64',
|
||||||
cacheKey: `test-case-${uuidv4()}`,
|
cacheKey: `test-case-${uuidv4()}`,
|
||||||
containerHookFiles: `debug-cache`,
|
|
||||||
};
|
};
|
||||||
const buildParameter = await CreateParameters(overrides);
|
const buildParameter = await CreateParameters(overrides);
|
||||||
expect(buildParameter.projectPath).toEqual(overrides.projectPath);
|
expect(buildParameter.projectPath).toEqual(overrides.projectPath);
|
||||||
@ -41,6 +40,7 @@ describe('Cloud Runner Kubernetes', () => {
|
|||||||
const cachePushFail = 'Did not push source folder to cache because it was empty Library';
|
const cachePushFail = 'Did not push source folder to cache because it was empty Library';
|
||||||
const buildSucceededString = 'Build succeeded';
|
const buildSucceededString = 'Build succeeded';
|
||||||
|
|
||||||
|
expect(results).toContain('Collected Logs');
|
||||||
expect(results).toContain(libraryString);
|
expect(results).toContain(libraryString);
|
||||||
expect(results).toContain(buildSucceededString);
|
expect(results).toContain(buildSucceededString);
|
||||||
expect(results).not.toContain(cachePushFail);
|
expect(results).not.toContain(cachePushFail);
|
||||||
|
Loading…
Reference in New Issue
Block a user