summaryrefslogtreecommitdiff
path: root/net-ftp/atftp/files/atftp-0.8.0-test-sh-declare-local.patch
blob: de63fc03a626c4d62955b7f629e5ae5b593af3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From a718243fe78fe9002b4145a158e02801e907399b Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flo@geekplace.eu>
Date: Sun, 2 Oct 2022 19:47:47 +0200
Subject: [PATCH 1/2] Declare variable D as local in stop_and_clean

This also fixes tests in Gentoo, where src_test() has already declare
a variable D, containing the path of the temporary install
directory (aka. DESTDIR).
--- a/test/test.sh
+++ b/test/test.sh
@@ -576,6 +576,7 @@ stop_and_clean(){
     ## +3 is for "Test tsize option ..." and "Test PCRE mapped download ... "
     ## +2 for diskspace tests:
     local M=$(grep "/tmp/" "$TDIR"/multicast*.log | wc -l)
+    local D
     $INTERACTIVE && D=2
     cat <<EOF
 Expected: