From 249e293f7ace5a76996c192310518cf1ac270b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Sat, 22 Aug 2026 17:45:06 +0200 Subject: [PATCH] em-script-tests: don't load the site file * test/lisp/eshell/em-script-tests.el (em-script-test/batch-file) (em-script-test/batch-file/shebang): Invoke Emacs with -Q to suppress site file loading. (Bug#81679) --- test/lisp/eshell/em-script-tests.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lisp/eshell/em-script-tests.el b/test/lisp/eshell/em-script-tests.el index a660107c893..5465cf38f63 100644 --- a/test/lisp/eshell/em-script-tests.el +++ b/test/lisp/eshell/em-script-tests.el @@ -138,7 +138,7 @@ (with-temp-eshell-settings (call-process (expand-file-name invocation-name invocation-directory) nil '(t nil) nil - "--batch" "-f" "eshell-batch-file" temp-file)) + "--batch" "-Q" "-f" "eshell-batch-file" temp-file)) (should (equal (buffer-string) "hi\n"))))) (ert-deftest em-script-test/batch-file/shebang () @@ -149,7 +149,7 @@ (string-match-p "openbsd" system-configuration)))) (ert-with-temp-file temp-file :text (format - "#!/usr/bin/env -S %s --batch -f eshell-batch-file\necho hi" + "#!/usr/bin/env -S %s --batch -Q -f eshell-batch-file\necho hi" (expand-file-name invocation-name invocation-directory)) (set-file-modes temp-file #o744) (with-temp-buffer