perf-tool: Add --hotplug option
The --hotplug option works together with --headless and makes the perf tool not add a persistant virtual monitor, allowing the perf test themselves able to handle monitors. This is needed for hotplug tests. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2623>
This commit is contained in:
parent
d116256e83
commit
644dd90785
@ -56,8 +56,9 @@ def start_shell(wrap=None, perf_output=None):
|
||||
args.append('--nested')
|
||||
elif options.headless:
|
||||
args.append('--headless')
|
||||
args.append('--virtual-monitor')
|
||||
args.append('1280x720')
|
||||
if not options.hotplug:
|
||||
args.append('--virtual-monitor')
|
||||
args.append('1280x720')
|
||||
else:
|
||||
args.append('--display-server')
|
||||
args.append('--wayland-display')
|
||||
@ -315,6 +316,8 @@ parser.add_argument("-x", "--x11", action="store_true",
|
||||
help="Run as an X11 compositor")
|
||||
parser.add_argument("--headless", action="store_true",
|
||||
help="Run as a headless Wayland compositor")
|
||||
parser.add_argument("--hotplug", action="store_true",
|
||||
help="Start without a virtual monitor attached")
|
||||
|
||||
options = parser.parse_args()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user