aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2022-07-28 18:11:40 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2022-07-30 10:48:33 +0200
commit057f431b0ab16bd81819967d855d43ecf8df4586 (patch)
treeac9dcf00be63503a777dac98b32c878efde6ab64 /test/Makefile
parentMake list of paths const to fix a false positive of gcc analyzer (diff)
downloadfirejail-057f431b0ab16bd81819967d855d43ecf8df4586.tar.gz
firejail-057f431b0ab16bd81819967d855d43ecf8df4586.tar.zst
firejail-057f431b0ab16bd81819967d855d43ecf8df4586.zip
CI: fix wrong matching for test errors
grep was returning non-zero exit code if it did NOT find the error marker, and zero if it did.
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 2f3a97d73..2c376da58 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -3,7 +3,7 @@ TESTS=$(patsubst %/,%,$(wildcard */))
3.PHONY: $(TESTS) 3.PHONY: $(TESTS)
4$(TESTS): 4$(TESTS):
5 cd $@ && ./$@.sh 2>&1 | tee $@.log 5 cd $@ && ./$@.sh 2>&1 | tee $@.log
6 cd $@ && grep -a TESTING $@.log && grep -a -L "TESTING ERROR" $@.log 6 cd $@ && grep -a TESTING $@.log && ! grep -a -q "TESTING ERROR" $@.log
7 7
8.PHONY: clean 8.PHONY: clean
9clean: 9clean: