Skip to content

Commit

Permalink
chore: clean up cdk.out after running integration tests (#2924)
Browse files Browse the repository at this point in the history
The change from #2871 was not referencing the full path to the `cdk.out` directory.
  • Loading branch information
jogold authored and RomainMuller committed Jun 19, 2019
1 parent 1159255 commit d5d76ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/cdk-integ-tools/lib/integ-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ export class IntegrationTest {
if (fs.existsSync(this.cdkContextPath)) {
fs.unlinkSync(this.cdkContextPath);
}
if (fs.existsSync('cdk.out')) {
fs.removeSync('cdk.out');

const cdkOutPath = path.join(this.directory, 'cdk.out');
if (fs.existsSync(cdkOutPath)) {
fs.removeSync(cdkOutPath);
}
}

Expand Down

0 comments on commit d5d76ce

Please sign in to comment.