ci/lava: add main() function to fix entry point
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35961>
This commit is contained in:
@@ -609,7 +609,7 @@ class StructuredLoggerWrapper:
|
||||
return context
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
# given that we proxy from DUT -> LAVA dispatcher -> LAVA primary -> us ->
|
||||
# GitLab runner -> GitLab primary -> user, safe to say we don't need any
|
||||
# more buffering
|
||||
@@ -617,3 +617,6 @@ if __name__ == "__main__":
|
||||
sys.stderr.reconfigure(line_buffering=True)
|
||||
|
||||
fire.Fire(LAVAJobSubmitter)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user