If SHELL is not in the environ, the error message is different.

This commit is contained in:
Pedro Algarvio 2013-08-13 14:17:41 +01:00
parent 1ad2ceb5e1
commit 90d375d14e

View File

@ -40,7 +40,10 @@ class PipStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn):
self.assertSaltCommentRegexpMatches(
ret,
'Error installing \'supervisor\': .* '
'[nN]o such file or directory'
# If SHELL is set in the environ the error is:
'([nN]o such file or directory|'
# if there's no SHELL in the environ, the error is different
'/tmp/pip-installed-errors: not found)'
)
# We now create the missing virtualenv