[gegl] Erase old test results before running xml tests



commit 78c59b14507e6f71cbe142187b44c238fdc27650
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Thu May 30 10:55:40 2013 -0700

    Erase old test results before running xml tests

 tests/compositions/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/compositions/Makefile.am b/tests/compositions/Makefile.am
index 10dfad5..1d6d93c 100644
--- a/tests/compositions/Makefile.am
+++ b/tests/compositions/Makefile.am
@@ -72,6 +72,7 @@ $(testprefix)%.xml.sh: Makefile.am $(call test_to_xml,$@) $(call test_to_ref,$@)
        out_img=$(call test_to_out,$@)                                     ;\
        echo "#!/bin/bash" > $@                                            ;\
        echo "mkdir -p $(abs_builddir)/output" >> $@                       ;\
+       echo "if [ -a $$out_img ]; then rm $$out_img ; fi" >> $@           ;\
        echo "$(builddir_gegl) $$xml_file -o $$out_img" >> $@              ;\
        echo "$(builddir_img_cmp) $$ref_img $$out_img" >> $@  ;\
        chmod +x $@


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]