disable executing of commands during tests

This commit is contained in:
Thomas Boop 2020-09-29 18:55:53 -04:00
parent 5590df7c5d
commit d36cf58775
2 changed files with 7 additions and 2 deletions

View file

@ -20,7 +20,8 @@ describe('authutil tests', () => {
.toString(36)
.substring(7)
);
process.env['GITHUB_ENV'] = ''; // Stub out ENV file functionality so we can verify it writes to standard out
console.log('::stop-commands::stoptoken'); // Disable executing of runner commands when running tests in actions
process.env['GITHUB_ENV'] = ''; // Stub out Environment file functionality so we can verify it writes to standard out (toolkit is backwards compatible)
const tempDir = path.join(_runnerDir, randPath, 'temp');
await io.rmRF(tempDir);
await io.mkdirP(tempDir);
@ -62,6 +63,7 @@ describe('authutil tests', () => {
if (_runnerDir) {
await io.rmRF(_runnerDir);
}
console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions
}, 100000);
function readRcFile(rcFile: string) {