Project

General

Profile

« Previous | Next » 

Revision 723

input.Makefile: Don't print message to accept output for failing 2-step tests, because they use another test's accepted output

View differences:

input.Makefile
126 126

  
127 127
all += $(tests)
128 128

  
129
hasOwnRef = $(filter-out %.2-step.xml,$@)
129 130
testRef = $(1:.2-step.xml=.xml).ref
130 131

  
131 132
define test
132 133
env test=1 verbose=1 n=$(test_n) $(1) $(if $(+in),<$(+in)) $(+maps) >$@
133 134
@(set -x; $(DIFF) $(call testRef,$@) $@) 2>&1 || { e=$$?;\
134
echo $(emph)"To accept new test output:"$(endEmph);\
135
echo "$(MAKE) $@-ok --directory=$(realpath .) --makefile=../input.Makefile";\
135
$(if $(hasOwnRef),echo $(emph)"To accept new test output:"$(endEmph);\
136
echo "$(MAKE) $@-ok --directory=$(realpath .) --makefile=../input.Makefile";)\
136 137
exit $$e;}
137 138
endef
138 139

  

Also available in: Unified diff