Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
45589029
Commit
45589029
authored
12 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1477110
by msonnabaum, tim.plunkett: Fixed php path detection in run-tests.sh.
parent
1ef0cd4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/run-tests.sh
+4
-4
4 additions, 4 deletions
scripts/run-tests.sh
with
4 additions
and
4 deletions
scripts/run-tests.sh
+
4
−
4
View file @
45589029
...
...
@@ -253,14 +253,14 @@ function simpletest_script_init($server_software) {
if
(!
empty
(
$args
[
'php'
]))
{
$php
=
$args
[
'php'
]
;
}
elseif
(
!
empty
(
$_ENV
[
'_'
]
))
{
elseif
(
$php_env
=
getenv
(
'_'
))
{
//
'_'
is an environment variable
set
by the shell. It contains the
command
that was executed.
$php
=
$
_ENV
[
'_'
]
;
$php
=
$
php_env
;
}
elseif
(
!
empty
(
$_ENV
[
'SUDO_COMMAND'
]
))
{
elseif
(
$sudo
=
getenv
(
'SUDO_COMMAND'
))
{
//
'SUDO_COMMAND'
is an environment variable
set
by the
sudo
program.
// Extract only the PHP interpreter, not the rest of the command.
list
(
$php
,
)
=
explode
(
' '
,
$
_ENV
[
'SUDO_COMMAND'
]
, 2
)
;
list
(
$php
,
)
=
explode
(
' '
,
$
sudo
, 2
)
;
}
else
{
simpletest_script_print_error
(
'Unable to automatically determine the path to the PHP interpreter. Supply the --php command line argument.'
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment