tracie: Switch to using shutil.move for cross filesystem moves
authorRohan Garg <rohan.garg@collabora.com>
Mon, 30 Mar 2020 17:12:00 +0000 (19:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Apr 2020 10:53:05 +0000 (10:53 +0000)
commitd0f836e5aef29c5887cb5f3d3cba2b1d7d5d78fd
tree8364a5bf188ec08a77a720d7bf38157abd5ff8f0
parent7b7dbd4fc832eb67a4afd013f8cb623cedcf0d51
tracie: Switch to using shutil.move for cross filesystem moves

When running tracie in a docker container, renaming files from
inside the container to a bind-mounted folder on the host causes
a invalid cross-device link due to os.rename limitations.

Switching to shutil allows us to overcome this.

Signed-off-by: Rohan Garg <rohan.garg@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4377>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4377>
.gitlab-ci/tracie/tracie.py