]> git.eshelyaron.com Git - emacs.git/commitdiff
Make tramp test regexp more robust
authorMattias Engdegård <mattiase@acm.org>
Sat, 20 Jul 2019 17:16:38 +0000 (19:16 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 22 Jul 2019 14:38:02 +0000 (16:38 +0200)
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory):
Match a greater variety of human-readable size values.

test/lisp/net/tramp-tests.el

index 64ba0414e88e3500f7222362493fdc84d28b37d9..1404ef39d55f43d0bfc17256fea190d3ad2419ec 100644 (file)
@@ -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\\}"