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.
This commit is contained in:
Mattias Engdegård 2019-07-20 19:16:38 +02:00
parent 7f95d2d407
commit d0eeb62c43

View 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\\}"