aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-07-20 19:16:38 +0200
committerMattias EngdegÄrd2019-07-22 16:38:02 +0200
commitd0eeb62c43cc3041b322249b488ad157c506abaa (patch)
tree8ae572d5e714cc58898aa9a2fdab48ab52c447ab /test
parent7f95d2d40726b4fb4a2ba1b8c373f3498e286d34 (diff)
downloademacs-d0eeb62c43cc3041b322249b488ad157c506abaa.tar.gz
emacs-d0eeb62c43cc3041b322249b488ad157c506abaa.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-tests.el2
1 files changed, 1 insertions, 1 deletions
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'."
2827 (looking-at-p 2827 (looking-at-p
2828 (concat 2828 (concat
2829 ;; There might be a summary line. 2829 ;; There might be a summary line.
2830 "\\(total.+[[:digit:]]+[KMGTPEZY]?\n\\)?" 2830 "\\(total.+[[:digit:]]+ ?[kKMGTPEZY]?i?B?\n\\)?"
2831 ;; We don't know in which order ".", ".." and "foo" appear. 2831 ;; We don't know in which order ".", ".." and "foo" appear.
2832 (format 2832 (format
2833 "\\(.+ %s\\( ->.+\\)?\n\\)\\{%d\\}" 2833 "\\(.+ %s\\( ->.+\\)?\n\\)\\{%d\\}"