Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
cb74f421
Commit
cb74f421
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
200bb85b
Changes
1
Hide 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 @
cb74f421
...
...
@@ -189,6 +189,7 @@ class TestXHTMLMixin(ERP5TypeTestCase):
portal_skins_path
=
self
.
portal
.
getId
()
+
'/portal_skins/'
args
=
(
'jsl'
,
'-stdin'
,
'-nologo'
,
'-nosummary'
,
'-conf'
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'jsl.conf'
))
error_list
=
[]
for
path
in
path_list
:
check_path
=
portal_skins_path
+
path
body
=
self
.
publish
(
check_path
).
getBody
()
...
...
@@ -197,7 +198,11 @@ class TestXHTMLMixin(ERP5TypeTestCase):
close_fds
=
True
).
communicate
(
body
)
except
OSError
,
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
):
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