emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d0eeb62: Make tramp test regexp more robust


From: Mattias Engdegård
Subject: [Emacs-diffs] master d0eeb62: Make tramp test regexp more robust
Date: Mon, 22 Jul 2019 10:38:49 -0400 (EDT)

branch: master
commit d0eeb62c43cc3041b322249b488ad157c506abaa
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>

    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 64ba041..1404ef3 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\\}"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]