scripting: Terminate using meta_context_terminate()

With meta_exit() we bypass the tear down procedures, making the test
case excercising much less code paths. Use meta_context_terminate()
instead, as that exits the main loop and goes through proper shutdown.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349>
This commit is contained in:
Jonas Ådahl 2022-08-16 12:47:55 +02:00
parent 67d965d560
commit a071d9e009

View File

@ -293,7 +293,7 @@ async function _runPerfScript(scriptModule, outputFile) {
Meta.exit(Meta.ExitCode.ERROR);
}
Meta.exit(Meta.ExitCode.SUCCESS);
global.context.terminate();
}
/**