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
3e65eb96
Commit
3e65eb96
authored
13 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#666854
by TR, JacobSingh: fixed E_NOTICE warnings in run_tests().sh .
parent
d7946ebd
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
+8
-5
8 additions, 5 deletions
scripts/run-tests.sh
with
8 additions
and
5 deletions
scripts/run-tests.sh
+
8
−
5
View file @
3e65eb96
...
...
@@ -585,9 +585,8 @@ function simpletest_script_reporter_display_results() {
if
(
$args
[
'verbose'
])
{
// Report results.
echo
"Detailed test results:
\n
"
;
echo
"----------------------
\n
"
;
echo
"
\n
"
;
echo
"Detailed test results
\n
"
;
echo
"---------------------
\n
"
;
$results
=
db_query
(
"SELECT * FROM {simpletest} WHERE test_id = :test_id ORDER BY test_class, message_id"
, array
(
':test_id'
=>
$test_id
))
;
$test_class
=
''
;
...
...
@@ -597,6 +596,10 @@ function simpletest_script_reporter_display_results() {
// Display
test
class every
time
results are
for
new
test
class.
echo
"
\n\n
----
$result
->test_class ----
\n\n\n
"
;
$test_class
=
$result
->test_class
;
// Print table header.
echo
"Status Group Filename Line Function
\n
"
;
echo
"--------------------------------------------------------------------------------
\n
"
;
}
simpletest_script_format_result
(
$result
)
;
...
...
@@ -614,8 +617,8 @@ function simpletest_script_reporter_display_results() {
function
simpletest_script_format_result
(
$result
)
{
global
$results_map
,
$color
;
$summary
=
sprintf
(
"%-
10.10
s %-10.10s %-
30.30s %-5.5s %-20.20
s
\n
"
,
$results_map
[
$result
->status],
$result
->message_group,
basename
(
$result
->file
)
,
$result
->line,
$result
->
caller
)
;
$summary
=
sprintf
(
"%-
9.9
s %-10.10s %-
17.17s %4.4s %-35.35
s
\n
"
,
$results_map
[
$result
->status],
$result
->message_group,
basename
(
$result
->file
)
,
$result
->line,
$result
->
function
)
;
simpletest_script_print
(
$summary
, simpletest_script_color_code
(
$result
->status
))
;
...
...
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