From 74d0211b53d1a925162fde2d22392ecacf262f9c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 16 Oct 2020 00:39:37 -0700 Subject: [PATCH] Treat oni-module.el as oni-module when looking for tests --- generate.el | 6 ++++-- 1 file 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)