Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
1aa6532d
Commit
1aa6532d
authored
Oct 17, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testXHTML: display jsl errors from all scripts
do not limit to the first script with errors
parent
00a2658e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5/tests/testXHTML.py
product/ERP5/tests/testXHTML.py
+6
-1
No files found.
product/ERP5/tests/testXHTML.py
View file @
1aa6532d
...
@@ -189,6 +189,7 @@ class TestXHTMLMixin(ERP5TypeTestCase):
...
@@ -189,6 +189,7 @@ class TestXHTMLMixin(ERP5TypeTestCase):
portal_skins_path
=
self
.
portal
.
getId
()
+
'/portal_skins/'
portal_skins_path
=
self
.
portal
.
getId
()
+
'/portal_skins/'
args
=
(
'jsl'
,
'-stdin'
,
'-nologo'
,
'-nosummary'
,
'-conf'
,
args
=
(
'jsl'
,
'-stdin'
,
'-nologo'
,
'-nosummary'
,
'-conf'
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'jsl.conf'
))
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'jsl.conf'
))
error_list
=
[]
for
path
in
path_list
:
for
path
in
path_list
:
check_path
=
portal_skins_path
+
path
check_path
=
portal_skins_path
+
path
body
=
self
.
publish
(
check_path
).
getBody
()
body
=
self
.
publish
(
check_path
).
getBody
()
...
@@ -197,7 +198,11 @@ class TestXHTMLMixin(ERP5TypeTestCase):
...
@@ -197,7 +198,11 @@ class TestXHTMLMixin(ERP5TypeTestCase):
close_fds
=
True
).
communicate
(
body
)
close_fds
=
True
).
communicate
(
body
)
except
OSError
,
e
:
except
OSError
,
e
:
raise
OSError
,
'%r
\
n
%r'
%
(
os
.
environ
,
e
)
raise
OSError
,
'%r
\
n
%r'
%
(
os
.
environ
,
e
)
self
.
assertEqual
(
stdout
,
''
,
'jsl result of %s : %s'
%
(
check_path
,
stdout
))
if
stdout
:
error_list
.
append
((
check_path
,
stdout
))
if
error_list
:
message
=
'
\
n
'
.
join
([
"%s
\
n
%s
\
n
"
%
error
for
error
in
error_list
])
self
.
fail
(
message
)
def
test_html_file
(
self
):
def
test_html_file
(
self
):
path_list
=
os
.
environ
.
get
(
'CGI_PATH'
,
path_list
=
os
.
environ
.
get
(
'CGI_PATH'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment