-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13330: test(cmd/pulumi): Always use a valid project directory name r=abhinav a=abhinav Using `t.TempDir()` or a hex-encoded string isn't enough because the name may start with a number. This switches all such temporary directories to use: $tempDir/test-$random Where `$tempDir` is managed by the current test. This will address flaky errors like: ``` === FAIL: cmd/pulumi TestCreatingStackWithArgsSpecifiedOrgName (0.69s) new_test.go:74: Error Trace: /home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:74 Error: Received unexpected error: '001' is not a valid project name. a project with this name already exists: 001 Test: TestCreatingStackWithArgsSpecifiedOrgName ``` Because the temporary directory was: /tmp/TestCreatingStackWithArgsSpecifiedOrgName963299567/001 Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
- Loading branch information
Showing
4 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters