Commit c74d2601 authored by Jérome Perrin's avatar Jérome Perrin

ERP5TypeFunctionalTestCase: start Xvfb when running in debug mode without $DISPLAY

Otherwise running in debug mode on headless machines just display
cryptic error message.
parent 121573b9
......@@ -144,7 +144,7 @@ class FunctionalTestRunner:
def test(self, debug=0):
xvfb = Xvfb(self.instance_home)
try:
if not debug:
if not (debug and os.getenv('DISPLAY')):
print("\nSet 'erp5_debug_mode' environment variable to 1"
" to use your existing display instead of Xvfb.")
xvfb.run()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment