Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2016 at 19:03 UTC
Updated:
14 Dec 2020 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
generalredneckHere is a quick patch. Works on my Windows 10 machine running from CMD as well as from bash on Windows 10. This is using PHP 5.5. I will need someone to test linux/mac to make sure it still works (though I seriously doubt I broke anything, and for older versions of php like 5.3 and 5.2 which are officially supported.
Comment #3
cilefen commentedHi @generalredneck:
It doesn't break anything on a Mac, or the Linux testbots. This seems fine to me. But there is a backport policy so we don't miss useful enhancements on newer versions. These sections of the policy are relevant to this issue:
There already is an issue open in D8, #2748883: Use the PHP_BINARY constant in addition to --php in run-tests.sh. I am marking this postponed on that one.
Comment #4
mustanggb commentedD8 is set to use Symphony's PhpExecutableFinder, no chance of duplicate work, so we're unblocked.
Comment #5
mustanggb commentedComment #6
mustanggb commentedComment #7
mustanggb commentedComment #8
mcdruid commented#2748883: Use the PHP_BINARY constant in addition to --php in run-tests.sh is still open for D8 (likely not getting much attention as I'm not sure the run-tests.sh script is used much now in newer branches), but as noted by @MustangGB the suggested approach there is to use Symfony's
https://github.com/symfony/process/blob/3.4/PhpExecutableFinder.php
#2 looks okay to me, but if we're primarily concerned with fixing run-tests.sh for Windows (as it works okay on *nix hosts which set the shell environment up in a reasonably consistent way), couldn't we put the new logic in later as a fallback? - e.g. something like:
Perhaps that's a very minor point, but in the interests of "if it ain't broke, don't fix it" ...
Comment #9
mcdruid commentedThis is hardly any different to #2 but will use the shell's
_env variable first if that's available.Comment #10
mcdruid commentedComment #11
fabianx commentedRTBM, +1 from me for merge
Comment #13
mcdruid commentedThanks everyone!