From: Mattias EngdegÄrd Date: Sat, 20 Jul 2019 17:16:38 +0000 (+0200) Subject: Make tramp test regexp more robust X-Git-Tag: emacs-27.0.90~1819 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d0eeb62c43cc3041b322249b488ad157c506abaa;p=emacs.git Make tramp test regexp more robust * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory): Match a greater variety of human-readable size values. --- diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 64ba0414e88..1404ef39d55 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -2827,7 +2827,7 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." (looking-at-p (concat ;; There might be a summary line. - "\\(total.+[[:digit:]]+[KMGTPEZY]?\n\\)?" + "\\(total.+[[:digit:]]+ ?[kKMGTPEZY]?i?B?\n\\)?" ;; We don't know in which order ".", ".." and "foo" appear. (format "\\(.+ %s\\( ->.+\\)?\n\\)\\{%d\\}"