Provide a fallback chromedriver for other Linuxes as well#2901
Provide a fallback chromedriver for other Linuxes as well#2901semenko merged 1 commit intoEFForg:masterfrom Tenzer:chromium-script-other-linuxes
Conversation
|
Ooof, yeah, good call. That logic got pretty silly over a couple of merges (that's a new script since ~last week). Thanks a bunch! |
Provide a fallback chromedriver for other Linuxes as well
|
You're welcome. It could probably be cleaner by putting |
|
Yeah -- definitely. Testing got significantly restructured last week, so there are a bunch of hacks hanging around to make things work. @TheNavigat want to take a look now that Travis/Debian, etc. have been fixed, and see if anything can be cleaned up? |
|
The Since this PR basically ruins my whole "fully supported distros only" point, you can go ahead and add the whole path setting thing above the if statement. @semenko Sure, I'll check that in a few! |
|
Oh, sorry, I wasn't aware of that. What does it take to be a fully supported distro then? |
|
I disagree with @TheNavigat -- I think it's totally fine to provide a best effort "hey this might work" on other distros. Clearly people are developing on non-Debian flavors -- and if people want to submit patches to make those distros work better, that's great! Let's just set chromedriver to look in the path by default -- and if Arch, BSD, etc. run into fun problems, hopefully we'll get equally fun fixes. |
|
I have submitted #2903 which makes the change suggested. |
When running the test scripts (and thus pre-commit hook) on a Linux distribution which is neither Ubuntu or Debian, the
chromedriver_pathvariable isn't set at all, and the script will then always fail with a error such as this:This fixes that by providing the fallback value of just "chromedriver" to other Linux distributions, which at least makes it work on my machine (running Arch Linux).