From 2d5988d45693396e54f5d21f59a14255b5e75ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= Date: Wed, 12 May 2021 12:50:45 +0200 Subject: [PATCH] Simplify running of tests There were a test (common-req.t) which was writing to directory, from which test run. It was fixed in 6.31. --- perl-HTTP-Message.spec | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/perl-HTTP-Message.spec b/perl-HTTP-Message.spec index 50b0849..dfea564 100644 --- a/perl-HTTP-Message.spec +++ b/perl-HTTP-Message.spec @@ -90,7 +90,6 @@ requests, responses and the headers contained within them. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} -Requires: coreutils Requires: perl-Test-Harness Requires: perl(URI::URL) @@ -116,15 +115,8 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' -#!/bin/bash -set -e -# t/status-old.t writes into CWD -DIR=$(mktemp -d) -cp -a %{_libexecdir}/%{name}/t "$DIR" -pushd "$DIR" -prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -popd -rm -r "$DIR" +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %{_fixperms} %{buildroot}/* @@ -145,6 +137,7 @@ make test %changelog * Wed May 12 2021 Michal Josef Špaček - 6.31-1 - 6.31 bump +- Simplify running of tests * Tue May 11 2021 Michal Josef Špaček - 6.30-1 - 6.30 bump