summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-04-06 10:11:07 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:07 +0200
commitcaff6e6f1aef6d861ab31f6058f83c22618b1179 (patch)
treec94e957be9938cc1e3cb8b8d7b855163b5241081 /Makefile
parent4a41852f82cd8c50ad79b19a029de8819554ebac (diff)
downloadvyos-live-build-caff6e6f1aef6d861ab31f6058f83c22618b1179.tar.gz
vyos-live-build-caff6e6f1aef6d861ab31f6058f83c22618b1179.zip
Excluding Python scripts from shell script tests in top-level Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 46f9eb32b..6b572f592 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,11 @@ test:
@for SCRIPT in $(SCRIPTS); \
do \
- sh -n $${SCRIPT}; \
- echo -n "."; \
+ if ! head -n1 $${SCRIPT} | grep -qs python; \
+ then \
+ sh -n $${SCRIPT}; \
+ echo -n "."; \
+ fi; \
done
@echo " done."
@@ -25,8 +28,11 @@ test:
then \
for SCRIPT in $(SCRIPTS); \
do \
- checkbashisms -f -x $${SCRIPT}; \
- echo -n "."; \
+ if ! head -n1 $${SCRIPT} | grep -qs python; \
+ then \
+ checkbashisms -f -x $${SCRIPT}; \
+ echo -n "."; \
+ fi; \
done; \
else \
echo "WARNING: skipping bashism test - you need to install devscripts."; \