gitlab-ci: correct tracie behavior with replay errors
authorAndres Gomez <agomez@igalia.com>
Thu, 30 Apr 2020 21:05:07 +0000 (00:05 +0300)
committerAndres Gomez <agomez@igalia.com>
Wed, 13 May 2020 10:57:36 +0000 (13:57 +0300)
commita6beb051aff4f11784cb974a1dc3647e74f2389c
tree13a5fb670585d1b71600fb076889235dade07c96
parent8546d1dd789b58bd0aff5ca0a231efb35c09c1ac
gitlab-ci: correct tracie behavior with replay errors

[dump_trace_images] Info: Dumping trace /tmp/tracie.test.ap5pshYcsg/traces-db/trace1/magenta.testtrace... ERROR
[dump_trace_images] Debug: === Failure log start ===
invalid literal for int() with base 16: 'in'
[dump_trace_images] Debug: === Failure log end ===
[check_image] Trace /tmp/tracie.test.ap5pshYcsg/traces-db/trace1/magenta.testtrace couldn't be replayed. See above logs for more information.
Traceback (most recent call last):
  File "/tmp/tracie.test.ap5pshYcsg/tracie.py", line 176, in <module>
    main()
  File "/tmp/tracie.test.ap5pshYcsg/tracie.py", line 164, in main
    ok, result = gitlab_check_trace(project_url, commit_id, args.device_name, trace, expectation)
TypeError: cannot unpack non-iterable bool object

Fixes: efbbf8bb81e ("tracie: Print results in a machine readable format")
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4839>
.gitlab-ci/tracie/tests/test.sh
.gitlab-ci/tracie/tracie.py