Module: Mesa
Branch: main
Commit: 814e98c3a0dda68c27b12dd24d3e9c8d29e14b74
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=814e98c3a0dda68c27b12dd24d3e9c8d29e14b74

Author: Pierre-Eric Pelloux-Prayer <[email protected]>
Date:   Tue Sep 21 18:44:16 2021 +0200

radeonsi/test: sanitize output_folder

Acked-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13021>

---

 src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py 
b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
index 7d61a5d4bf0..506a8e3b0ae 100755
--- a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
+++ b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
@@ -161,7 +161,7 @@ for line in p.stdout.decode().split("\n"):
 output_folder = args.output_folder
 count = 1
 while os.path.exists(output_folder):
-    output_folder = "{}.{}".format(args.output_folder, count)
+    output_folder = "{}.{}".format(os.path.abspath(args.output_folder), count)
     count += 1
 
 os.mkdir(output_folder)

Reply via email to