ci: ArgumentParser receives the args from the main parameters
authorPablo Saavedra <psaavedra@igalia.com>
Tue, 5 May 2020 13:08:04 +0000 (15:08 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 May 2020 17:27:42 +0000 (17:27 +0000)
commit37621da7b144a6021a8e3962352ad3561e82f560
treec478ae9b830339b0da201d9ba595246be0b7763c
parenteb1f22fb014384bec96fa2c2b08e09a2cb29cddd
ci: ArgumentParser receives the args from the main parameters

Change the main function to receive the args parameter from
sys.argv[1:]. The args parameter will be passed to the
ArgumentParser.parse_args() function as argument.

This change provides an easier  main() function signature to use
with pythonic testsuites.

Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4916>
.gitlab-ci/tracie/tracie.py