public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/remind] epel10: fix tests
@ 2026-08-21 13:53 Dick Marinus
0 siblings, 0 replies; only message in thread
From: Dick Marinus @ 2026-08-21 13:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/remind
Branch : epel10
Commit : da7530a72e70a9c43783378d3d83c1b177cca9ad
Author : Dick Marinus <dick@mrns.nl>
Date : 2025-05-19T19:54:30+02:00
Stats : +39/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/remind/c/da7530a72e70a9c43783378d3d83c1b177cca9ad?branch=epel10
Log:
fix tests
---
diff --git a/0001-Do-not-use-obsolete-tail-2-syntax.-Instead-use-tail-.patch b/0001-Do-not-use-obsolete-tail-2-syntax.-Instead-use-tail-.patch
new file mode 100644
index 0000000..1ea894a
--- /dev/null
+++ b/0001-Do-not-use-obsolete-tail-2-syntax.-Instead-use-tail-.patch
@@ -0,0 +1,34 @@
+From 098cf4707ab53885ecaf5c0b5d736341d4491f6a Mon Sep 17 00:00:00 2001
+From: Dianne Skoll <dianne@skoll.ca>
+Date: Sat, 17 May 2025 10:59:28 -0400
+Subject: [PATCH] Do not use obsolete "tail +2" syntax. Instead use "tail
+ -n+2"
+
+Fix courtesy of Dick Marinus.
+---
+ tests/test-rem | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/test-rem b/tests/test-rem
+index e9cd99fa..1906e7dc 100644
+--- a/tests/test-rem
++++ b/tests/test-rem
+@@ -589,13 +589,13 @@ rm -f ../tests/once.timestamp
+ ../src/remind ../tests/test-once.rem >> ../tests/test.out 2>&1
+ ../src/remind ../tests/test-once.rem >> ../tests/test.out 2>&1
+ ../src/remind ../tests/test-once.rem >> ../tests/test.out 2>&1
+-tail +2 ../tests/once.timestamp >> ../tests/test.out 2>&1
++tail -n+2 ../tests/once.timestamp >> ../tests/test.out 2>&1
+ rm -f ../tests/once.timestamp
+
+ ../src/remind - < ../tests/test-once.rem >> ../tests/test.out 2>&1
+ ../src/remind - < ../tests/test-once.rem >> ../tests/test.out 2>&1
+ ../src/remind - < ../tests/test-once.rem >> ../tests/test.out 2>&1
+-tail +2 ../tests/once.timestamp >> ../tests/test.out 2>&1
++tail -n+2 ../tests/once.timestamp >> ../tests/test.out 2>&1
+ rm -f ../tests/once.timestamp
+
+ # Newlines in calendar output
+--
+2.49.0
+
diff --git a/remind.spec b/remind.spec
index 930f237..42f50c8 100644
--- a/remind.spec
+++ b/remind.spec
@@ -1,6 +1,6 @@
Name: remind
Version: 05.00.05
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Sophisticated calendar and alarm program
# GPL-2.0-only: main software
@@ -19,6 +19,7 @@ Patch: use-system-libjsonparser.diff
# temporary
Patch: remove-timezone-tests-from-compare.patch
+Patch: 0001-Do-not-use-obsolete-tail-2-syntax.-Instead-use-tail-.patch
BuildRequires: gcc
BuildRequires: gnupg2
@@ -144,6 +145,9 @@ make test
%{_datadir}/pixmaps/tkremind.png
%changelog
+* Mon May 19 2025 Dick Marinus <dick@mrns.nl> - 05.00.05-3
+- Fix tests
+
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 05.00.05-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-21 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21 13:53 [rpms/remind] epel10: fix tests Dick Marinus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox