Commit d0eeb62c authored by Mattias Engdegård's avatar Mattias Engdegård

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.
parent 7f95d2d4
Pipeline #2517 passed with stage
in 61 minutes and 50 seconds
......@@ -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\\}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment