From d0eeb62c43cc3041b322249b488ad157c506abaa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sat, 20 Jul 2019 19:16:38 +0200 Subject: [PATCH] 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. --- test/lisp/net/tramp-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\\}" -- 2.39.2