From: Po Lu Date: Tue, 25 Feb 2025 15:20:31 +0000 (+0800) Subject: Respect temporary-file-directory in Android test controller X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a53ecf7d5bb4fdee00f3fdb1afa4e47a0f5103b7;p=emacs.git Respect temporary-file-directory in Android test controller * test/infra/android/test-controller.el (ats-exec-script): Respect temporary-file-directory. (cherry picked from commit 5ea0cee19a7a4d88f92e6fab692a17ce295a6698) --- diff --git a/test/infra/android/test-controller.el b/test/infra/android/test-controller.el index 999f66399e4..0df7725e574 100644 --- a/test/infra/android/test-controller.el +++ b/test/infra/android/test-controller.el @@ -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))