Skip to content

Commit

Permalink
chore: make integ tests run on Linux
Browse files Browse the repository at this point in the history
`cp -R dir/ ...` on macOS copies the directory contents, but
with GNU `cp` copies `dir` into the target directory.

Add a `*` to make sure we copy the directory contents on all platforms.
  • Loading branch information
rix0rrr authored May 13, 2020
1 parent 900ec74 commit 95934c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/test/integ/cli/cdk-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function fullStackName(stackNames: string | string[]): string | string[]
export async function cloneDirectory(source: string, target: string) {
await shell(['rm', '-rf', target]);
await shell(['mkdir', '-p', target]);
await shell(['cp', '-R', source + '/', target]);
await shell(['cp', '-R', source + '/*', target]);
}

/**
Expand Down

0 comments on commit 95934c3

Please sign in to comment.