chiark / gitweb /
test-common: Use $(wildcard ) rather than $(shell echo )
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 Dec 2019 01:18:26 +0000 (01:18 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Dec 2019 21:53:43 +0000 (21:53 +0000)
This is probably a bit faster, but more relevantly it would DTRT if
for some reason there were no applicable tests.  Which is going to
happen in a moment, when we add some machinery before the applicable
test.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test-common.sd.mk

index bf9c6cf26a25a9ec4276209bfc80dc2b8c574dcc..0d6cebfa3bd1e18ceab7289f1d4738fe0c6b8441 100644 (file)
@@ -1,7 +1,7 @@
 
 include common.make
 
-&TESTSCRIPTS ?= $(shell echo &^/t-*[0-9a-z])
+&TESTSCRIPTS ?= $(wildcard &^/t-*[0-9a-z])
 &TESTNAMES := $(patsubst t-%,%,$(notdir $(&TESTSCRIPTS)))
 
 &DEPS += $(src)/test-common.tcl