branch: externals/compat
commit 108e6d3f6207632d040ea740a4b51b2a14ed38e0
Author: Aymeric Agon-Rambosson <[email protected]>
Commit: Daniel Mendler <[email protected]>
Condition package-get-version test to correct containing directory
---
compat-tests.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compat-tests.el b/compat-tests.el
index e8a5189de0..0616e6ddd7 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -95,6 +95,8 @@
(defconst compat-tests--version (package-get-version))
(ert-deftest package-get-version ()
+ (skip-unless (string-match-p "\\`compat\\(-.+\\)?\\'"
+ (file-name-nondirectory (directory-file-name
default-directory))))
(should (stringp compat-tests--version))
(should-equal 29 (car (version-to-list compat-tests--version))))