Skip to content

Commit 6d7e583

Browse files
committed
Fixed CI
Signed-off-by: [ 大鳄 ] Asew <[email protected]>
1 parent 4be2654 commit 6d7e583

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def handle_display_args(args) -> None:
2222
from utility.process import launch_process
2323
sys.path.pop(0) # remove src folder from path
2424

25+
if 'DISPLAY' not in os.environ:
26+
args.spawn_display = ':99'
27+
2528
if args.spawn_display:
2629
cmd = ["Xvfb", args.spawn_display, "-screen", "0", "2112x1376x24", "-fbdir", "/var/tmp"]
2730
if 'DISPLAY' in os.environ:
@@ -40,11 +43,6 @@ def on_display_kill(*discard) -> None:
4043
time.sleep(0.2)
4144
if os.path.exists("/var/tmp/Xvfb_screen0"):
4245
break
43-
44-
print("DISPLAY", os.environ['DISPLAY'], file=sys.stderr)
45-
else:
46-
print("NO DISPLAY", file=sys.stderr)
47-
4846

4947
if args.view_display:
5048
display = os.environ['DISPLAY'] if args.view_display == "auto" else args.view_display

0 commit comments

Comments
 (0)