mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
main: Pass script on CLI instead of via environment
Environment variables aren't the best option to pass parameters to a process (wouldn't it be "fun" if SHELL_PERF_MODULE appeared in a regular user session?). Instead, use a (hidden) --automation-script command line flag to specify a script file that should be used to drive an automated session. As a side effect, the script no longer has to be relative to the main module itself, so it will be possible to run scripts that aren't bundled with the shell sources. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2812>
This commit is contained in:
parent
5e93791708
commit
bf9b9838c2
5 changed files with 45 additions and 14 deletions
|
|
@ -71,7 +71,7 @@ foreach perf_test : perf_tests
|
|||
args: [
|
||||
perf_tool,
|
||||
'--headless',
|
||||
'--perf=@0@'.format(test_name),
|
||||
'--script=@0@/js/perf/@1@.js'.format(meson.project_source_root(), test_name),
|
||||
options,
|
||||
],
|
||||
is_parallel: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue