aboutsummaryrefslogtreecommitdiffstats
path: root/generate.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-10-16 00:39:37 -0700
committerGravatar Tom Willemse2020-10-16 13:31:10 -0700
commit74d0211b53d1a925162fde2d22392ecacf262f9c (patch)
tree573016837da5ad4bd15ffb510d943008126a45f1 /generate.el
parent1e28d8a237cf9c4748bdbd5db0407bda6e6e524e (diff)
downloademacs-config-74d0211b53d1a925162fde2d22392ecacf262f9c.tar.gz
emacs-config-74d0211b53d1a925162fde2d22392ecacf262f9c.zip
Treat oni-module.el as oni-module when looking for tests
Diffstat (limited to 'generate.el')
-rw-r--r--generate.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/generate.el b/generate.el
index 6e2e5e5..f6756f9 100644
--- a/generate.el
+++ b/generate.el
@@ -25,10 +25,12 @@
("script" . ,(format "make integration-test-%s TEST_ARCHIVE=$(realpath bin/)" module))))
(defun unit-test-exists-p (module)
- (file-exists-p (format "test/%s-test.el" module)))
+ (file-exists-p
+ (format "test/%s-test.el" (string-remove-suffix ".el" module))))
(defun integration-test-exists-p (module)
- (file-exists-p (format "test/integration/%s.bats" module)))
+ (file-exists-p
+ (format "test/integration/%s.bats" (string-remove-suffix ".el" module))))
(defun alist-p (lst)
(and (listp lst)