Commit fda43a7b authored by Glenn Morris's avatar Glenn Morris

Skip a vc-bzr test if run as root

* test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-faulty-bzr-autoloads):
Skip this test when run as root.  This works around a race
condition in root-specific code in vc-mode-line when deleting a file.

; Do not merge to master, instead fix vc-mode-line there.
parent 4370b8eb
Pipeline #332 failed with stage
in 2 seconds
......@@ -112,6 +112,9 @@
(ert-deftest vc-bzr-test-faulty-bzr-autoloads ()
"Test we can generate autoloads in a bzr directory when bzr is faulty."
(skip-unless (executable-find vc-bzr-program))
;; Avoid vc-mode-line bug;
(skip-unless (not (eq 0 (user-real-uid))))
(let* ((homedir (make-temp-file "vc-bzr-test" t))
(bzrdir (expand-file-name "bzr" homedir))
(file (progn
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment