Skip to content

Commit

Permalink
chore: fix unallowed characters in single test split script (#12807)
Browse files Browse the repository at this point in the history
* chore: fix_unallowed_characters_in_single_split_script

* chore: fix_unallowed_characters_in_single_split_script
  • Loading branch information
goldbez authored Jun 15, 2023
1 parent 82728ba commit 5596ebb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/generate_single_test_buildspec_codebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ const main = () => {
];

const jobBuildSpec: jobBuildSpecType = {
identifier: `${os}_${filePath.replace('src/__tests__/', '').replace('.test', '').replace('.ts', '')}`,
identifier: `${os}_${filePath
.replace(/src\/__tests__\//g, '')
.replace(/\.test/g, '')
.replace(/\.ts/g, '')
.replace(/\./g, '_')
.replace(/-/g, '_')
.replace(/\//g, '_')}`,
buildspec: os === 'l' ? 'codebuild_specs/run_e2e_tests_linux.yml' : 'codebuild_specs/run_e2e_tests_windows.yml',
env: {
variables: {
Expand Down

0 comments on commit 5596ebb

Please sign in to comment.