Return non-zero exit code on tests failure

epel9
Petr Písař 13 years ago
parent bcd3ab9c65
commit 83e3a66930

@ -0,0 +1,24 @@
From c0001598a2b5b4cc8739beeb183f0d3f9c6a1d84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Thu, 2 Feb 2012 17:12:44 +0100
Subject: [PATCH] Return non-zero exit code on tests failure
---
regression/TEST | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/regression/TEST b/regression/TEST
index c860ef2..620e77f 100755
--- a/regression/TEST
+++ b/regression/TEST
@@ -441,6 +441,7 @@ then
cat $ERR
echo '**** Errors occured: ./output not removed'
echo
+ exit 1
else
cd ..
ls -l output
--
1.7.7.6

@ -2,7 +2,7 @@
Summary: A GNU program for formatting C code
Name: indent
Version: 2.2.11
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv3+
Group: Applications/Text
URL: http://indent.isidore-it.eu/beautify.html
@ -12,6 +12,9 @@ Patch7: indent-2.2.9-man.patch
# Bug 733051, submitted to upstream
# <https://lists.gnu.org/archive/html/bug-indent/2011-08/msg00000.html>
Patch8: indent-2.2.11-Do-not-split-decimal-float-suffix-from-constant.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2012-02/msg00000.html>
Patch9: indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch
BuildRequires: texinfo texi2html
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
@ -30,6 +33,7 @@ you want a program to format your code.
%patch5 -p1
%patch7 -p1
%patch8 -p1 -b .float_suffix
%patch9 -p1 -b .exit_code
%build
%configure
@ -61,6 +65,9 @@ fi
%changelog
* Thu Feb 02 2012 Petr Pisar <ppisar@redhat.com> - 2.2.11-6
- Return non-zero exit code on tests failure
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.11-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

Loading…
Cancel
Save