aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-04-05 15:27:30 +0200
committerFabian Groffen <grobian@gentoo.org>2018-04-05 15:27:30 +0200
commit5fc7da2079b2e04b5a0dd66e57ff9545ab54069d (patch)
tree4c0d4656e7b8f2b8d7dd584f58ed1b3904db7082
parentatom_explode: properly set fields for no-version case (diff)
downloadportage-utils-5fc7da2079b2e04b5a0dd66e57ff9545ab54069d.tar.gz
portage-utils-5fc7da2079b2e04b5a0dd66e57ff9545ab54069d.tar.bz2
portage-utils-5fc7da2079b2e04b5a0dd66e57ff9545ab54069d.zip
tests/atom_compare/Makefile: fail when there are differences
The static tests fell off the radar because actual differences did not result in failure (e.g. Travis being green and all), also the sed magic was too loose, causing a wrong input file to be computed
-rw-r--r--tests/atom_compare/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/atom_compare/Makefile b/tests/atom_compare/Makefile
index 71a980f..ead9d75 100644
--- a/tests/atom_compare/Makefile
+++ b/tests/atom_compare/Makefile
@@ -8,7 +8,7 @@ test check: static static.q portage
t = \
@set -f && \
$(call mkdir,$(b)) && \
- good=`echo $< | sed 's:.tests:.good:'`; \
+ good=`echo $< | sed 's:.tests$$:.good:'`; \
out=$(@:.tests=); \
ret=0; \
$(realpath $(lastword $^)) $(1) `sed 's:\#.*::' $<` > $$out || ret=$$?; \
@@ -18,6 +18,7 @@ t = \
echo "PASS atom_compare $$out"; \
else \
echo "FAIL atom_compare $$out"; \
+ ret=1; \
fi;; \
77) echo "SKIP atom_compare $$out"; ret=0;; \
*) echo "FAIL atom_compare $$out";; \