]> git.eshelyaron.com Git - emacs.git/commitdiff
Respect temporary-file-directory in Android test controller
authorPo Lu <luangruo@yahoo.com>
Tue, 25 Feb 2025 15:20:31 +0000 (23:20 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Feb 2025 09:38:59 +0000 (10:38 +0100)
* test/infra/android/test-controller.el (ats-exec-script):
Respect temporary-file-directory.

(cherry picked from commit 5ea0cee19a7a4d88f92e6fab692a17ce295a6698)

test/infra/android/test-controller.el

index 999f66399e405420bd7aa4dd7443117eb1a50157..0df7725e574d997f657ea785b8e8d5ec73fd3995 100644 (file)
@@ -452,7 +452,9 @@ as PACKAGE, provided that it is debuggable."
   (save-restriction
     (narrow-to-region (point) (point))
     (let* ((name (format "%s.sh" (make-temp-name "ats-")))
-          (fullname (concat (file-name-as-directory "/tmp") name)))
+          (fullname (concat (file-name-as-directory
+                             temporary-file-directory)
+                            name)))
       (with-temp-buffer
        (insert script)
        (write-region (point-min) (point-max) fullname))