]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.el
test: cleanup test_emacs
[notmuch] / test / test-lib.el
index 943999622d927265357a984efce409e5a883b3ba..344a02e8bf809e731528de3211517d2eec63adec 100644 (file)
 ;;
 ;; Authors: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
 
+;; avoid crazy 10-column default of --batch
+(set-frame-width (window-frame (get-buffer-window)) 80)
+
+(defun notmuch-test-wait ()
+  "Wait for process completion."
+  (while (get-buffer-process (current-buffer))
+    (sleep-for 0.1)))
+
 (defun visible-buffer-string ()
   "Same as `buffer-string', but excludes invisible text."
   (visible-buffer-substring (point-min) (point-max)))