Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
34f0da16
Commit
34f0da16
authored
Jan 24, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeFunctionalTestCase: run Xvfb with 24bits
Also note that we could take a screenshot if test times out.
parent
6184c003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+4
-1
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
34f0da16
...
@@ -77,7 +77,8 @@ class Xvfb:
...
@@ -77,7 +77,8 @@ class Xvfb:
xvfb_bin = os.environ.get("xvfb_bin", "Xvfb")
xvfb_bin = os.environ.get("xvfb_bin", "Xvfb")
with open(os.devnull, '
w
') as null:
with open(os.devnull, '
w
') as null:
self.process = subprocess.Popen(
self.process = subprocess.Popen(
(xvfb_bin, '
-
fbdir
' , self.fbdir, display),
(xvfb_bin, '
-
fbdir
' , self.fbdir, display,
'
-
screen
', '
0
', '
1280
x1024x24
'),
stdout=null, stderr=null, close_fds=True)
stdout=null, stderr=null, close_fds=True)
# try to check if X screen is available
# try to check if X screen is available
time.sleep(5)
time.sleep(5)
...
@@ -284,6 +285,8 @@ class FunctionalTestRunner:
...
@@ -284,6 +285,8 @@ class FunctionalTestRunner:
while self.getStatus() is None:
while self.getStatus() is None:
time.sleep(10)
time.sleep(10)
if (time.time() - start) > float(self.timeout):
if (time.time() - start) > float(self.timeout):
# TODO: here we could take a screenshot and display it in the report
# (maybe using data: scheme inside a <img>)
raise TimeoutError("Test took more than %s seconds" % self.timeout)
raise TimeoutError("Test took more than %s seconds" % self.timeout)
except:
except:
print("ERP5TypeFunctionalTestCase.test Exception: %r" % (sys.exc_info(),))
print("ERP5TypeFunctionalTestCase.test Exception: %r" % (sys.exc_info(),))
...
...
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