[gegl] tests/compositions: Always fail make check on test error
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests/compositions: Always fail make check on test error
- Date: Fri, 18 May 2012 12:04:52 +0000 (UTC)
commit aa70bbcdccfdf7f60c34deb0021ce633105f23e9
Author: Martin Nordholts <martinn src gnome org>
Date: Fri May 18 14:03:56 2012 +0200
tests/compositions: Always fail make check on test error
Appearently sh does not behave consistent on all platforms with
regards to making the script exit status match the exist status of the
last command. Use bash instead which seems to be more consistent, and
also show output to make it clearer when things go wrong.
tests/compositions/Makefile.am | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index fb27e24..2d46346 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -68,10 +68,10 @@ $(testprefix)%.xml.sh: Makefile.am $(call test_to_xml,$@) $(call test_to_ref,$@)
@xml_file=$(call test_to_xml,$@) ;\
ref_img=$(call test_to_ref,$@) ;\
out_img=$(call test_to_out,$@) ;\
- echo "#!/bin/sh" > $@ ;\
+ echo "#!/bin/bash" > $@ ;\
echo "mkdir -p $(abs_builddir)/output" >> $@ ;\
echo "$(builddir_gegl) $$xml_file -o $$out_img" >> $@ ;\
- echo "$(builddir_img_cmp) $$ref_img $$out_img &> /dev/null" >> $@ ;\
+ echo "$(builddir_img_cmp) $$ref_img $$out_img" >> $@ ;\
chmod +x $@
clean-local:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]