xref: /aosp_15_r20/external/autotest/server/control_segments/client_trampoline (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# client_trampoline
2#
3# This control file is used to install and re-exec the actual client test
4# control file on the host.
5#
6# This control file relies on a trampoline_testname global variable that
7# is inserted at the top of this file by server_job.run().
8
9def _client_trampoline():
10    path = job.stage_control_file(trampoline_testname)
11    with open(path, "r") as fh:
12
13        code_obj = compile(
14                fh.read(),
15                path,
16                mode="exec",
17                flags=0,
18                dont_inherit=1,
19        )
20        exec(code_obj, globals(), globals())
21
22_client_trampoline()
23