If 2 separate powershell sessions are concurrently running a pester test suite on the same machine with the same account, pester will throw this error when running a test:
Task should be Sucessful(The term temp is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.)
It seems that the 2 sessions are both trying to put dynamically compiled code into the same Temp directory, and so are clobbering each other. This came up b/c we're running pester tests from Jenkins and often doing multiple simultaneous runs of different test suites.
If 2 separate powershell sessions are concurrently running a pester test suite on the same machine with the same account, pester will throw this error when running a test:
Task should be Sucessful(The term temp is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.)
It seems that the 2 sessions are both trying to put dynamically compiled code into the same Temp directory, and so are clobbering each other. This came up b/c we're running pester tests from Jenkins and often doing multiple simultaneous runs of different test suites.