test-ob-shell: Fix test buffers not being removed on success

* test-ob-shell.el (test-ob-shell/remote-with-stdin-or-cmdline): Kill
test related buffers when test is successful.  See ce4f7db3c.
This commit is contained in:
Matthew Trzcinski 2023-02-19 18:19:45 -05:00
parent 747e60629f
commit aa158da69b
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ echo ${table[spaghetti]}
(org-trim (org-babel-execute-src-block))))
(expected (concat "ARGS: --verbose 23 71"
"\nhello tramp from " (file-local-name default-directory))))
(if (should (equal result expected)) nil
(if (should (equal result expected))
;; FIXME: Fails with non-local exit on Emacs 26.
(when (version<= "27" emacs-version)
(kill-matching-buffers (format "\\*tramp/mock\\s-%s\\*" system-name) t t))))))))