Skip to content

Conversation

tnguyen14
Copy link
Contributor

I was trying to run docker-selenium test suite on my Jenkins instance, and ran into an issue where the pip executable's shebang length being too long. Jenkins tends to have very long directory path. Here's an example:

#!/bb/jenkins/workspace/icense_docker-selenium_PR-1-GNCWWURZ32MIKRWRAGOJLHHRNQDNWKSNBSNTKV5GAN44JPAJLVLQ/tests/docker-selenium-tests/bin/python2

The error:

-bash: /bb/jenkins/workspace/icense_docker-selenium_PR-1-GNCWWURZ32MIKRWRAGOJLHHRNQDNWKSNBSNTKV5GAN44JPAJLVLQ/tests/docker-selenium-tests/bin/pip: /bb/jenkins/workspace/icense_docker-selenium_PR-1-GNCWWURZ32MIKRWRAGOJLHHRNQDN: bad interpreter: No such file or directory

This fix uses the suggestion suggested in pypa/virtualenv#596 (comment)

/cc @diemol

@diemol
Copy link
Member

diemol commented Feb 14, 2019

Thanks for your contribution @tnguyen14!

@diemol diemol merged commit bb31b6d into SeleniumHQ:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants