返回提交历史
Modified
Tools/IndependentKernel/TestMultiDisplay.py
+2
-2
XFEstudio/XFESystem
Bound independent test monitor modes for automatic resolution images
2f3fc5c
代码差异
1 个文件
+2
-2
@@ -42,7 +42,7 @@ def verify_displays(image):
42
42
reservation.bind(('127.0.0.1', 0)); port = reservation.getsockname()[1]
43
43
command = [str(ROOT / '.tools/qemu/qemu-system-x86_64.exe'), '-machine', 'q35', '-accel', 'tcg',
44
44
'-cpu', 'max', '-smp', '8', '-m', '1024M', '-vga', 'none',
45
'-device', 'VGA,id=Display1,vgamem_mb=64,xres=1280,yres=800',
45
'-device', 'VGA,id=Display1,vgamem_mb=64,edid=on,xres=1280,yres=800,xmax=1280,ymax=800',
46
46
'-display', 'none', '-net', 'none', '-rtc', 'base=utc',
47
47
'-drive', f'if=pflash,format=raw,readonly=on,file={ROOT / ".tools/firmware/edk2-x86_64-code.fd"}',
48
48
'-drive', f'if=pflash,format=raw,file={folder / "Vars.fd"}',
@@ -51,7 +51,7 @@ def verify_displays(image):
51
51
'-serial', f'file:{folder / "Serial.log"}', '-qmp', f'tcp:127.0.0.1:{port},server=on,wait=off',
52
52
'-no-reboot', '-no-shutdown']
53
53
if boot_number != 3:
54
command += ['-device', 'secondary-vga,id=Display2,vgamem_mb=64,xres=1280,yres=800']
54
command += ['-device', 'secondary-vga,id=Display2,vgamem_mb=64,edid=on,xres=1280,yres=800,xmax=1280,ymax=800']
55
55
boot = {'Number': boot_number, 'QemuArguments': command, 'InputEvents': [], 'Captures': []}
56
56
result['Boots'].append(boot)
57
57
qmp = qemu = None