mesa/.gitlab-ci/lava
Guilherme Gallo 7600e2cca2 ci: Handle carriage return characters in LAVA logs
This commit updates LogFollower class to handle carriage return
characters in LAVA logs. LAVA treats carriage return characters as a
line break, so each carriage return in an output console is mapped to a
console line in LAVA.

The updated LogFollower class now merges lines that end with a carriage
return character into a single line, making the Gitlab sections work
correctly. In addition, the `remove_trailing_whitespace` method has been
updated to remove trailing `\r\n` characters from log lines.

The `test_lava_log_merge_carriage_return_lines` test function has also
been updated to test for carriage returns at the end of the previous
line.

Closes: #8242

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21614>
2023-03-06 17:17:32 +00:00
..
utils ci: Handle carriage return characters in LAVA logs 2023-03-06 17:17:32 +00:00
__init__.py
exceptions.py
lava-gitlab-ci.yml ci: migrate from wget to curl 2023-01-19 23:46:44 +00:00
lava-pytest.sh ci: implement unified sections 2023-03-01 12:02:24 +00:00
lava-submit.sh ci: implement unified sections 2023-03-01 12:02:24 +00:00
lava_job_submitter.py ci: migrate from wget to curl 2023-01-19 23:46:44 +00:00
requirements-test.txt ci/lava: Add LavaFarm class to find LAVA farm from runner tag 2023-02-16 13:08:41 +00:00
requirements.txt ci/lava: Move LAVA dependencies to pip 2023-02-16 13:08:41 +00:00